Browse Source

Go linting on write

master
Taylor Bockman 8 years ago
parent
commit
d998060bea
  1. 7
      dotfiles/config/nvim/init.vim

7
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<Paste>
" Color customizations
colorscheme zenburn

Loading…
Cancel
Save