diff --git a/dotfiles/config/nvim/init.vim b/dotfiles/config/nvim/init.vim index e561d9f..50a278b 100644 --- a/dotfiles/config/nvim/init.vim +++ b/dotfiles/config/nvim/init.vim @@ -151,10 +151,6 @@ let g:rust_recommended_style=0 " Explicitly provide vim-go the gofmt command let g:go_fmt_command = "gofmt" -" Go linting and automatically lint on write -set rtp+=$GOPATH/src/github.com/golang/lint/misc/vim -autocmd BufWritePost,FileWritePost *.go execute 'Lint' | cwindow - " Hotkeys " Note noremap is a normal mode non-recursive mapping " nnoremap and nmap make the bind only work in normal mode @@ -202,6 +198,9 @@ endif let g:syntastic_javascript_checkers = ['eslint'] let g:syntastic_javascript_jsxhint_exec = 'eslint' +" Go linting on write. This takes advantage of :GoMetaLinter in vim-go and requires golint to be installed +autocmd BufWritePost,FileWritePost *.go execute 'GoMetalLinter' | cwindow + " Color customizations colorscheme zenburn