|
|
|
@ -10,12 +10,10 @@ let g:go_highlight_structs = 1
|
|
|
|
|
let g:go_highlight_operators = 1
|
|
|
|
|
let g:go_highlight_build_constraints = 1
|
|
|
|
|
|
|
|
|
|
let g:syntastic_go_checkers = ['go', 'golint', 'errcheck']
|
|
|
|
|
|
|
|
|
|
let g:ale_linters['go'] = ['golint', 'gopls']
|
|
|
|
|
|
|
|
|
|
"let g:go_metalinter_autosave=1
|
|
|
|
|
"let g:go_metalinter_autosave_enabled=['golint', 'govet', 'typecheck']
|
|
|
|
|
augroup go_linters
|
|
|
|
|
autocmd!
|
|
|
|
|
autocmd FileType go let g:ale_linters['go'] = ['golangci-lint']
|
|
|
|
|
augroup END
|
|
|
|
|
|
|
|
|
|
" Open go doc in vertical window, horizontal, or tab
|
|
|
|
|
nnoremap <leader>d :GoDef<CR>
|
|
|
|
|