From 0055835f9e7298d9ea8b9c1226e3a871ee2f3793 Mon Sep 17 00:00:00 2001 From: buffet Date: Wed, 17 Aug 2022 11:59:02 +0000 Subject: [PATCH] Add lspsaga keybinds --- programs/nvim.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 '';