1
0
Fork 0
mirror of https://github.com/luzifer/vim.git synced 2024-11-09 16:10:00 +00:00

Replace gocode completion with language server

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-04-01 18:59:13 +02:00
parent 30d04dd0c0
commit 7acecee09e
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -12,6 +12,8 @@ Plug 'godlygeek/tabular'
Plug 'Chiel92/vim-autoformat'
Plug 'vim-airline/vim-airline'
Plug 'reedes/vim-pencil'
Plug 'autozimu/LanguageClient-neovim', { 'branch': 'next', 'do': 'bash install.sh' }
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
" Languages
@ -21,7 +23,6 @@ Plug 'groenewege/vim-less'
Plug 'mutewinter/nginx.vim'
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
Plug 'ekalinin/Dockerfile.vim'
Plug 'zchee/deoplete-go', { 'do': 'make'}
Plug 'Matt-Deacalion/vim-systemd-syntax'
Plug 'cespare/vim-toml'
Plug 'fatih/vim-hclfmt'
@ -966,9 +967,18 @@ autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
" vim-go configuration
"
let g:go_gocode_autobuild = 1
let g:go_metalinter_deadline = "20s"
let g:go_autodetect_gopath = 0
let g:go_def_mode = "gopls"
let g:go_metalinter_deadline = "20s"
"
" LanguageServer configuration
"
let g:LanguageClient_serverCommands = {
\ 'go': ['gopls'],
\ 'python': ['pyls'],
\ }
"
" Autoformat configuration