From 764b089525a5ee0dc14050bb0c0e5cf8b602ce3a Mon Sep 17 00:00:00 2001 From: Jedrzej Orbik Date: Mon, 9 Dec 2024 15:31:02 +0100 Subject: [PATCH] Small improvements --- stow/common/dot-config/nvim/lua/config_plugins/lsp-zero.lua | 2 ++ stow/common/dot-config/nvim/lua/debugging.lua | 2 +- stow/common/dot-config/nvim/lua/keymaps.lua | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/stow/common/dot-config/nvim/lua/config_plugins/lsp-zero.lua b/stow/common/dot-config/nvim/lua/config_plugins/lsp-zero.lua index a33cf3a..f40dae0 100644 --- a/stow/common/dot-config/nvim/lua/config_plugins/lsp-zero.lua +++ b/stow/common/dot-config/nvim/lua/config_plugins/lsp-zero.lua @@ -56,7 +56,9 @@ local lsp_attach = function(client, bufnr) nmap('gi', "Glance implementations", '[G]oto [I]mplementation') nmap('gH', "Glance references", 'Goto references') nmap('go', "Glance type_definitions", 'Goto type lsp_definitions') + nmap('gR', "Glance resume", 'Goto type lsp_definitions') nmap('gh', vim.lsp.buf.hover, '[G][H]over documentation') + nmap('gl', vim.diagnostic.open_float, 'Open diagnostics under cursor') nmap('rn', vim.lsp.buf.rename, '[R]e[n]ame') nmap('ca', vim.lsp.buf.code_action, '[C]ode [A]ction') diff --git a/stow/common/dot-config/nvim/lua/debugging.lua b/stow/common/dot-config/nvim/lua/debugging.lua index 03e4d24..caf31e8 100644 --- a/stow/common/dot-config/nvim/lua/debugging.lua +++ b/stow/common/dot-config/nvim/lua/debugging.lua @@ -64,7 +64,7 @@ return { dapui.setup({}) dap.listeners.after.event_initialized['dapui_config'] = dapui.open - dap.listeners.before.event_terminated['dapui_config'] = dapui.close + -- dap.listeners.before.event_terminated['dapui_config'] = dapui.close dap.listeners.before.event_exited['dapui_config'] = dapui.close -- Set up adapter specific configs diff --git a/stow/common/dot-config/nvim/lua/keymaps.lua b/stow/common/dot-config/nvim/lua/keymaps.lua index 6455a99..744d42b 100644 --- a/stow/common/dot-config/nvim/lua/keymaps.lua +++ b/stow/common/dot-config/nvim/lua/keymaps.lua @@ -35,8 +35,8 @@ map({"n", "v"}, "D", [["_D]]) map({"n", "v"}, "c", [["_c]]) map({"n", "v"}, "C", [["_C]]) map("n", "aq", "tabclose", { desc = "t[a]b [q] close" }) -map("n", "ac", "tabnew", { desc = "t[a]b [n]ew"}) -map("n", "an", "tabnew", { desc = "t[a]b [c]reate"}) +map("n", "ac", "tabnew", { desc = "t[a]b [c]reate"}) +map("n", "an", "tabnew", { desc = "t[a]b [n]ew"}) map("n", "yr", "let @+ = expand('%:~:.')lua vim.notify('Yanked relative path')", { desc = "Copy relative path", silent = true }) map("n", "yp", "let @+ = expand('%:p')lua vim.notify('Yanked full path')", { desc = "Copy full path", silent = true }) map("n", "tf", function()