diff --git a/lua/nvchad/mappings.lua b/lua/nvchad/mappings.lua index 8c2916f9..dd60edb8 100644 --- a/lua/nvchad/mappings.lua +++ b/lua/nvchad/mappings.lua @@ -7,26 +7,26 @@ map("i", "", "", { desc = "move right" }) map("i", "", "", { desc = "move down" }) map("i", "", "", { desc = "move up" }) -map("n", "", "noh", { desc = "general clear highlights" }) - map("n", "", "h", { desc = "switch window left" }) map("n", "", "l", { desc = "switch window right" }) map("n", "", "j", { desc = "switch window down" }) map("n", "", "k", { desc = "switch window up" }) -map("n", "", "w", { desc = "file save" }) -map("n", "", "%y+", { desc = "file copy whole" }) +map("n", "", "noh", { desc = "General Clear highlights" }) -map("n", "n", "set nu!", { desc = "toggle line number" }) -map("n", "rn", "set rnu!", { desc = "toggle relative number" }) -map("n", "ch", "NvCheatsheet", { desc = "toggle nvcheatsheet" }) +map("n", "", "w", { desc = "General Save file" }) +map("n", "", "%y+", { desc = "General Copy whole file" }) + +map("n", "n", "set nu!", { desc = "Toggle line number" }) +map("n", "rn", "set rnu!", { desc = "Toggle relative number" }) +map("n", "ch", "NvCheatsheet", { desc = "Toggle nvcheatsheet" }) map("n", "fm", function() require("conform").format { lsp_fallback = true } -end, { desc = "format files" }) +end, { desc = "General Format file" }) -- global lsp mappings -map("n", "ds", vim.diagnostic.setloclist, { desc = "lsp diagnostic loclist" }) +map("n", "ds", vim.diagnostic.setloclist, { desc = "LSP Diagnostic loclist" }) -- tabufline map("n", "b", "enew", { desc = "buffer new" }) @@ -44,8 +44,8 @@ map("n", "x", function() end, { desc = "buffer close" }) -- Comment -map("n", "/", "gcc", { desc = "comment toggle", remap = true }) -map("v", "/", "gc", { desc = "comment toggle", remap = true }) +map("n", "/", "gcc", { desc = "Toggle Comment", remap = true }) +map("v", "/", "gc", { desc = "Toggle comment", remap = true }) -- nvimtree map("n", "", "NvimTreeToggle", { desc = "nvimtree toggle window" })