32 Plug 'tomtom/tcomment_vim' |
32 Plug 'tomtom/tcomment_vim' |
33 Plug 'tpope/vim-unimpaired' |
33 Plug 'tpope/vim-unimpaired' |
34 Plug 'lifepillar/vim-mucomplete' |
34 Plug 'lifepillar/vim-mucomplete' |
35 Plug 'tpope/vim-endwise' |
35 Plug 'tpope/vim-endwise' |
36 |
36 |
37 if executable('rls') || executable('gopls') |
37 Plug 'prabirshrestha/async.vim' |
38 Plug 'prabirshrestha/async.vim' |
38 Plug 'prabirshrestha/vim-lsp' |
39 Plug 'prabirshrestha/vim-lsp' |
|
40 end |
|
41 |
39 |
42 Plug 'vimwiki/vimwiki' |
40 Plug 'vimwiki/vimwiki' |
43 |
41 |
44 Plug 'Shougo/vinarise.vim' |
42 Plug 'Shougo/vinarise.vim' |
45 Plug 'asciidoc/vim-asciidoc' |
43 Plug 'asciidoc/vim-asciidoc' |
348 endif |
346 endif |
349 |
347 |
350 if executable('gopls') |
348 if executable('gopls') |
351 autocmd FileType go setlocal omnifunc=lsp#complete |
349 autocmd FileType go setlocal omnifunc=lsp#complete |
352 autocmd User lsp_setup call lsp#register_server({ |
350 autocmd User lsp_setup call lsp#register_server({ |
353 \ 'name': 'go-lang', |
351 \ 'name': 'gopls', |
354 \ 'cmd': {server_info->['gopls']}, |
352 \ 'cmd': {server_info->['gopls']}, |
355 \ 'whitelist': ['go'], |
353 \ 'whitelist': ['go'], |
|
354 \}) |
|
355 endif |
|
356 |
|
357 if executable('nimlsp') |
|
358 autocmd FileType nim setlocal omnifunc=lsp#complete |
|
359 autocmd User lsp_setup call lsp#register_server({ |
|
360 \ 'name': 'nimlsp', |
|
361 \ 'cmd': {server_info->['nimlsp']}, |
|
362 \ 'whitelist': ['nim'], |
356 \}) |
363 \}) |
357 endif |
364 endif |
358 augroup END |
365 augroup END |
359 |
366 |
360 ">> Vimwiki |
367 ">> Vimwiki |