Add lspsaga keybinds

This commit is contained in:
buffet 2022-08-17 11:59:02 +00:00
parent f38b64fb51
commit 0055835f9e

View file

@ -52,9 +52,13 @@
{
plugin = lspsaga-nvim;
# TODO: lspsaga keybinds
config = ''
lua require 'lspsaga'.init_lsp_saga()
nnoremap ${leader}a :Lspsaga code_action<cr>
nnoremap ${leader}r :Lspsaga rename<cr>
nnoremap gd :lua vim.lsp.buf.definition()<cr>
nnoremap gD :lua vim.lsp.buf.declaration()<cr>
'';
}
@ -82,7 +86,7 @@
plugin = telescope-nvim;
config = ''
nnoremap ${leader}f :Telescope find_files<cr>
nnoremap ${leader}r :Telescope live_grep<cr>
nnoremap ${leader}g :Telescope live_grep<cr>
nnoremap ${leader}b :Telescope buffers<cr>
nnoremap ${leader}: :Telescope commands<cr>
'';