Skip to content

Commit

Permalink
Setup go
Browse files Browse the repository at this point in the history
  • Loading branch information
owodunni committed Feb 19, 2022
1 parent 917945f commit db422f7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
7 changes: 1 addition & 6 deletions alias.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function gsplit () {
message="$(git log --pretty=format:'%s' -n1)"
if [ `git status --porcelain --untracked-files=no | wc -l` = 0 ]
then
git reset --soft HEAD^
git reset --soft HEAD~
fi
git status --porcelain --untracked-files=no | while read stat file;
do
Expand All @@ -139,11 +139,6 @@ function gsplit () {
done
}

# microk8s

alias kubectl='microk8s kubectl'
alias helm='microk8s helm3'

#gradle
alias gw=gradle
alias ll='ls -al'
6 changes: 3 additions & 3 deletions init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ else
let curl_exists=expand('curl')
endif

let g:vim_bootstrap_langs = "javascript"
let g:vim_bootstrap_langs = "go,javascript"
let g:vim_bootstrap_editor = "neovim" " nvim or vim
let g:vim_bootstrap_theme = "gruvbox"
let g:vim_bootstrap_frams = "vuejs"
Expand Down Expand Up @@ -90,7 +90,6 @@ Plug 'hrsh7th/nvim-cmp'
Plug 'hrsh7th/cmp-vsnip'
Plug 'hrsh7th/vim-vsnip'


"*****************************************************************************
"*****************************************************************************

Expand Down Expand Up @@ -541,7 +540,7 @@ lua <<EOF

-- Use a loop to conveniently call 'setup' on multiple servers and
-- map buffer local keybindings when the language server attaches
local servers = { 'pyright', 'tsserver' }
local servers = { 'pyright', 'tsserver', 'gopls' }

-- Setup lspconfig.
local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities())
Expand All @@ -562,6 +561,7 @@ let g:ale_fixers = {
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
\ 'javascript': ['prettier'],
\ 'vue': ['prettier'],
\ 'go': ['gofmt'],
\}
let g:ale_fix_on_save = 1

Expand Down
3 changes: 3 additions & 0 deletions zshrc_profile
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ export PATH=$ANDROID_HOME/platform-tools:$PATH
# Go
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:$HOME/go/bin

# Snap
export PATH=$PATH:/var/lib/snapd/snap/bin

0 comments on commit db422f7

Please sign in to comment.