From fea5d02d2d07b148243c058d1b8b775f9cccac5e Mon Sep 17 00:00:00 2001 From: Valde <127395632+d4nse@users.noreply.github.com> Date: Sun, 11 Aug 2024 08:41:12 +0000 Subject: [PATCH] update mapping descriptions in mappings.lua (#2963) * Update mappings.lua Update mapping descriptions for better cheatsheet display * Update mappings.lua Gather toggleables under 'Toggle' panel --- lua/nvchad/mappings.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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", "", "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", "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" })