Update vim for go enabling coc for vim-fancy

main
Buddy Sandidge 4 years ago
parent cd19545af2
commit 3975f2df5d

@ -10,12 +10,10 @@ 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
let g:syntastic_go_checkers = ['go', 'golint', 'errcheck'] augroup go_linters
autocmd!
let g:ale_linters['go'] = ['golint', 'gopls'] autocmd FileType go let g:ale_linters['go'] = ['golangci-lint']
augroup END
"let g:go_metalinter_autosave=1
"let g:go_metalinter_autosave_enabled=['golint', 'govet', 'typecheck']
" 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>

@ -1,4 +1,4 @@
"Plug 'neoclide/coc.nvim', { 'branch': 'release' } Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'SirVer/ultisnips', { 'tag': '3.2' } Plug 'SirVer/ultisnips', { 'tag': '3.2' }
let g:UltiSnipsSnippetDirectories = [ 'UltiSnips', 'snips' ] let g:UltiSnipsSnippetDirectories = [ 'UltiSnips', 'snips' ]

@ -7,5 +7,4 @@ let g:ale_set_quickfix = 1
augroup linters augroup linters
autocmd! autocmd!
autocmd FileType javascript let g:ale_linters['javascript'] = ['eslint'] autocmd FileType javascript let g:ale_linters['javascript'] = ['eslint']
autocmd FileType go let g:ale_linters['go'] = ['golint', 'govet', 'gopls', 'gofmt']
augroup END augroup END

Loading…
Cancel
Save