diff --git a/after/plugin/keys.lua b/after/plugin/keys.lua index 67ce60a..8c64f53 100644 --- a/after/plugin/keys.lua +++ b/after/plugin/keys.lua @@ -16,4 +16,6 @@ vim.keymap.set('n', 'gl', '$', { remap = true }) vim.keymap.set('v', 'c', function () vim.cmd('\'<,\'>Commentary') end, { noremap = true, silent = true }) vim.keymap.set('n', 'c', function () vim.cmd('Commentary') end, { noremap = true, silent = true }) +vim.keymap.set('v', 'g', function () vim.cmd('Neogit') end, { noremap = true, silent = true }) + vim.keymap.set("n", "", "NvimTreeToggle", { silent = true }) diff --git a/lua/andr3/lsp.lua b/lua/andr3/lsp.lua index b79a617..d0bb206 100644 --- a/lua/andr3/lsp.lua +++ b/lua/andr3/lsp.lua @@ -121,8 +121,8 @@ keymap("n", "t", "terminal", { silent = true }) keymap({"n","v"}, "ca", function () saga.code_action() end, {}) keymap("n", "gr", "Lspsaga rename", { silent = true }) keymap("n", "gd", "Lspsaga peek_definition", { silent = true }) ---keymap("n", "cd", "Lspsaga show_line_diagnostics", { silent = true }) keymap("n", "cd", "Lspsaga show_cursor_diagnostics", { silent = true }) +keymap("n", "cr", "Lspsaga rename", { silent = true }) keymap('n', 'e', 'lua vim.diagnostic.open_float()', { silent = true }) keymap("n", "[e", "Lspsaga diagnostic_jump_prev", { silent = true }) keymap("n", "]e", "Lspsaga diagnostic_jump_next", { silent = true })