Fix vim go lint configuration
This commit is contained in:
parent
e2a852d903
commit
a5425e923a
@ -10,10 +10,8 @@ let g:go_highlight_structs = 1
|
|||||||
let g:go_highlight_operators = 1
|
let g:go_highlight_operators = 1
|
||||||
let g:go_highlight_build_constraints = 1
|
let g:go_highlight_build_constraints = 1
|
||||||
|
|
||||||
augroup go_linters
|
let g:ale_linters['go'] = ['golangci-lint']
|
||||||
autocmd!
|
let g:ale_go_golangci_lint_options = ''
|
||||||
autocmd FileType go let g:ale_linters['go'] = ['golangci-lint']
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
" Open go doc in vertical window, horizontal, or tab
|
" Open go doc in vertical window, horizontal, or tab
|
||||||
nnoremap <leader>d :GoDef<CR>
|
nnoremap <leader>d :GoDef<CR>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user