mirror of
https://github.com/luzifer/vim.git
synced 2024-12-20 10:21:19 +00:00
Replace gocode completion with language server
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
30d04dd0c0
commit
7acecee09e
1 changed files with 13 additions and 3 deletions
16
init.vim
16
init.vim
|
@ -12,6 +12,8 @@ Plug 'godlygeek/tabular'
|
||||||
Plug 'Chiel92/vim-autoformat'
|
Plug 'Chiel92/vim-autoformat'
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
Plug 'reedes/vim-pencil'
|
Plug 'reedes/vim-pencil'
|
||||||
|
|
||||||
|
Plug 'autozimu/LanguageClient-neovim', { 'branch': 'next', 'do': 'bash install.sh' }
|
||||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||||
|
|
||||||
" Languages
|
" Languages
|
||||||
|
@ -21,7 +23,6 @@ Plug 'groenewege/vim-less'
|
||||||
Plug 'mutewinter/nginx.vim'
|
Plug 'mutewinter/nginx.vim'
|
||||||
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
||||||
Plug 'ekalinin/Dockerfile.vim'
|
Plug 'ekalinin/Dockerfile.vim'
|
||||||
Plug 'zchee/deoplete-go', { 'do': 'make'}
|
|
||||||
Plug 'Matt-Deacalion/vim-systemd-syntax'
|
Plug 'Matt-Deacalion/vim-systemd-syntax'
|
||||||
Plug 'cespare/vim-toml'
|
Plug 'cespare/vim-toml'
|
||||||
Plug 'fatih/vim-hclfmt'
|
Plug 'fatih/vim-hclfmt'
|
||||||
|
@ -966,9 +967,18 @@ autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
|
||||||
" vim-go configuration
|
" vim-go configuration
|
||||||
"
|
"
|
||||||
|
|
||||||
let g:go_gocode_autobuild = 1
|
|
||||||
let g:go_metalinter_deadline = "20s"
|
|
||||||
let g:go_autodetect_gopath = 0
|
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
|
" Autoformat configuration
|
||||||
|
|
Loading…
Reference in a new issue