diff --git a/programs/nvim.nix b/programs/nvim.nix index 53f70de..37e6c1d 100644 --- a/programs/nvim.nix +++ b/programs/nvim.nix @@ -52,9 +52,13 @@ { plugin = lspsaga-nvim; - # TODO: lspsaga keybinds config = '' lua require 'lspsaga'.init_lsp_saga() + + nnoremap ${leader}a :Lspsaga code_action + nnoremap ${leader}r :Lspsaga rename + nnoremap gd :lua vim.lsp.buf.definition() + nnoremap gD :lua vim.lsp.buf.declaration() ''; } @@ -82,7 +86,7 @@ plugin = telescope-nvim; config = '' nnoremap ${leader}f :Telescope find_files - nnoremap ${leader}r :Telescope live_grep + nnoremap ${leader}g :Telescope live_grep nnoremap ${leader}b :Telescope buffers nnoremap ${leader}: :Telescope commands '';