aboutsummaryrefslogtreecommitdiff
path: root/.vim/plugin
diff options
context:
space:
mode:
authorgxlin <[email protected]>2021-07-20 23:30:18 +0800
committergxlin <[email protected]>2021-07-20 23:30:18 +0800
commita83dea3c8c92a30c83760c0e71bb35322190105b (patch)
tree92e28e0d2edcbb5be734b329e01a4f302cdabb8e /.vim/plugin
parent79deeb3d8f888fadd8fef49086f34ae7ff74e08f (diff)
downloaddotfiles-a83dea3c8c92a30c83760c0e71bb35322190105b.tar.gz
dotfiles-a83dea3c8c92a30c83760c0e71bb35322190105b.tar.bz2
dotfiles-a83dea3c8c92a30c83760c0e71bb35322190105b.zip
Config of vim lsp
Diffstat (limited to '.vim/plugin')
-rw-r--r--.vim/plugin/general.plug4
-rw-r--r--.vim/plugin/lsp.vim (renamed from .vim/plugin/lsp.plug)3
2 files changed, 5 insertions, 2 deletions
diff --git a/.vim/plugin/general.plug b/.vim/plugin/general.plug
index 453acba..d68ee70 100644
--- a/.vim/plugin/general.plug
+++ b/.vim/plugin/general.plug
@@ -1,9 +1,13 @@
+" vim: ft=vim
+
Plug 'Yggdroot/LeaderF', {'do': ':LeaderfInstallCExtension'}
Plug 'Valloric/YouCompleteMe', {
\ 'do': 'python3 ./install.py --clangd-completer',
\ }
Plug 'dense-analysis/ale'
Plug 'sheerun/vim-polyglot'
+Plug 'prabirshrestha/vim-lsp'
+Plug 'mattn/vim-lsp-settings'
let g:ycm_language_server = []
let g:Lf_RootMarkers = []
diff --git a/.vim/plugin/lsp.plug b/.vim/plugin/lsp.vim
index 1a5704b..2816300 100644
--- a/.vim/plugin/lsp.plug
+++ b/.vim/plugin/lsp.vim
@@ -1,5 +1,3 @@
-Plug 'prabirshrestha/vim-lsp'
-
if executable('gopls')
au User lsp_setup call lsp#register_server({
\ 'name': 'gopls',
@@ -37,3 +35,4 @@ augroup lsp_install
autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()
augroup END
+let g:lsp_settings_filetype_lua = 'sumneko-lua-language-server'