You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
605 B
VimL
23 lines
605 B
VimL
4 years ago
|
set noexpandtab
|
||
12 years ago
|
|
||
9 years ago
|
" use goimports for formatting
|
||
|
let g:go_fmt_command = "goimports"
|
||
|
|
||
|
" turn highlighting on
|
||
|
let g:go_highlight_functions = 1
|
||
|
let g:go_highlight_methods = 1
|
||
|
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']
|
||
|
|
||
4 years ago
|
let g:ale_linters['go'] = ['golint', 'gopls']
|
||
|
|
||
|
"let g:go_metalinter_autosave=1
|
||
|
"let g:go_metalinter_autosave_enabled=['golint', 'govet', 'typecheck']
|
||
|
|
||
9 years ago
|
" Open go doc in vertical window, horizontal, or tab
|
||
4 years ago
|
nnoremap <leader>d :GoDef<CR>
|
||
|
nnoremap <leader>t :GoDefType<CR>
|