From 195542781b7e96d9e701e2659e8a3878ed30e139 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Mon, 22 Dec 2025 12:57:05 +0000 Subject: [PATCH] Tweaks to keymap --- lua/config/keys.lua | 58 ++++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/lua/config/keys.lua b/lua/config/keys.lua index 5e76317..0e766da 100644 --- a/lua/config/keys.lua +++ b/lua/config/keys.lua @@ -3,7 +3,7 @@ return { { "s", group = "[S]earch", icon = "" }, { "c", group = "[C]ode", icon = "" }, { "d", group = "[D]iagnostics", icon = "" }, - { "g", group = "[G]enerate", icon = "󰈏" }, + { "g", group = "[G]it", icon = "󰊢" }, { "r", group = "[R]ename", icon = "󰑕" }, { "w", group = "[W]orkspace", icon = "" }, { "t", group = "[T]ree", icon = "󱏒" }, @@ -83,22 +83,22 @@ return { }, globals = { -- Window Navigation - { "", "h", desc = "Window Left" }, - { "", "j", desc = "Window Down" }, - { "", "k", desc = "Window Up" }, - { "", "l", desc = "Window Right" }, + { "", "h", desc = "Window Left" }, + { "", "j", desc = "Window Down" }, + { "", "k", desc = "Window Up" }, + { "", "l", desc = "Window Right" }, -- Window Resizing - { "", "+", desc = "Resize Increase Height" }, - { "", "-", desc = "Resize Decrease Height" }, - { "", ">", desc = "Resize Increase Width" }, - { "", "<", desc = "Resize Decrease Width" }, + { "", "+", desc = "Resize Increase Height" }, + { "", "-", desc = "Resize Decrease Height" }, + { "", ">", desc = "Resize Increase Width" }, + { "", "<", desc = "Resize Decrease Width" }, -- Splits - { "", "s", desc = "Split Window Horizontal" }, - { "", "x", desc = "Swap Window" }, - { "", ":q", desc = "Close Window" }, + { "", "s", desc = "Split Window Horizontal" }, + { "", "x", desc = "Swap Window" }, + { "", ":q", desc = "Close Window" }, -- Misc - { "", "nohlsearch", desc = "Clear Highlight" }, - { "d", vim.diagnostic.open_float, desc = "[D]iagnostics" }, + { "", "nohlsearch", desc = "Clear Highlight" }, + { "dd", vim.diagnostic.open_float, desc = "Show [D]iagnostics" }, }, harpoon = { { @@ -178,40 +178,40 @@ return { }, }, lsp = { + { "K", vim.lsp.buf.hover, desc = "[K] Hover Documentation" }, { "gd", function() require("telescope.builtin").lsp_definitions() end, desc = "[G]oto [D]efinition" }, + { "ge", vim.lsp.buf.declaration, desc = "[G]oto D[e]claration" }, + { + "gi", + function() require("telescope.builtin").lsp_implementations() end, + desc = "[G]oto [I]mplementation" + }, { "gr", function() require("telescope.builtin").lsp_references() end, desc = "[G]oto [R]eferences" }, { - "gI", - function() require("telescope.builtin").lsp_implementations() end, - desc = "[G]oto [I]mplementation" - }, - { - "D", + "gt", function() require("telescope.builtin").lsp_type_definitions() end, - desc = "Type [D]efinition" + desc = "[G]oto [T]ype" }, { - "ds", + "ss", function() require("telescope.builtin").lsp_document_symbols() end, - desc = "Document [S]ymbols" + desc = "[S]earch [S]ymbols" }, { "ws", function() require("telescope.builtin").lsp_dynamic_workspace_symbols() end, desc = "[W]orkspace [S]ymbols" }, - { "rn", vim.lsp.buf.rename, desc = "[R]e[n]ame" }, + { "r", vim.lsp.buf.rename, desc = "[R]ename" }, { "ca", vim.lsp.buf.code_action, desc = "[C]ode [A]ction" }, - { "K", vim.lsp.buf.hover, desc = "Hover Documentation" }, - { "gD", vim.lsp.buf.declaration, desc = "[G]oto [D]eclaration" }, { "f", vim.lsp.buf.format, desc = "[F]ormat" }, { "ci", @@ -221,9 +221,9 @@ return { }, neogen = { { - "gd", + "cd", ":lua require('neogen').generate()", - desc = "[G]enerate [D]ocumentation", + desc = "[C]ode Add [D]ocumentation", mode = "n", }, }, @@ -365,7 +365,7 @@ return { { "", telescope_builtin.buffers, - desc = "[ ] Find existing buffers", + desc = "[󰜞] Find existing buffers", mode = "n", }, -- Slightly advanced example of overriding default behavior and theme