update language server plugins

This commit is contained in:
nganhkhoa 2021-04-20 17:45:34 +07:00
parent 9de08eabe5
commit dd0c879db6
2 changed files with 20 additions and 0 deletions

View File

@ -19,3 +19,17 @@
(nvim.set_keymap "" :sa "<Plug>(operator-surround-append)" {:silent true})
(nvim.set_keymap "" :sd "<Plug>(operator-surround-delete)" {:silent true})
(nvim.set_keymap "" :sr "<Plug>(operator-surround-replace)" {:silent true})
;; language-client neovim
(set nvim.g.LanguageClient_loggingFile "/Users/lap12003/.config/nvim/lc.log")
(set nvim.g.LanguageClient_serverCommands
{:c ["ccls"]
:cpp ["ccls"]
:objc ["ccls"]
:objcpp ["ccls"]
:go ["gopls"]
:rust ["rls"]})
(nvim.set_keymap "" :gd "<Plug>(lcn-definition)" {:silent true})
(nvim.set_keymap "" :gh "<Plug>(lcn-hover)" {:silent true})
(nvim.set_keymap "" :gr "<Plug>(lcn-references)" {:silent true})

View File

@ -56,4 +56,10 @@ packer.startup(function(use)
use 'sheerun/vim-polyglot'
use 'rescript-lang/vim-rescript'
use {
'autozimu/LanguageClient-neovim',
branch = 'next',
run = 'bash install.sh'
}
end)