diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua index 5aee4460..9c7d884a 100644 --- a/.config/nvim/lua/config/keymaps.lua +++ b/.config/nvim/lua/config/keymaps.lua @@ -7,7 +7,7 @@ local lazy = require("lazy") local searching_brave = function() vim.fn.system({ "xdg-open", "https://search.brave.com/search?q=" .. vim.fn.expand("") }) end -map("n", "?", searching_brave, { noremap = true, silent = true, desc = "Search current word on brave search" }) +map("n", "?", searching_brave, { noremap = true, silent = true, desc = "Search Current Word on Brave Search" }) -- Lazy options map("n", "l", "") @@ -32,13 +32,13 @@ map("n", "<", "<<", { desc = "Deindent" }) map("n", ">", ">>", { desc = "Indent" }) -- Save without formatting -map("n", "", "noautocmd w", { desc = "Save without formatting" }) +map("n", "", "noautocmd w", { desc = "Save Without Formatting" }) -- Cursor navigation on insert mode -map("i", "", "", { desc = "Move cursor left" }) -map("i", "", "", { desc = "Move cursor left" }) -map("i", "", "", { desc = "Move cursor left" }) -map("i", "", "", { desc = "Move cursor left" }) +map("i", "", "", { desc = "Move Cursor Left" }) +map("i", "", "", { desc = "Move Cursor Left" }) +map("i", "", "", { desc = "Move Cursor Left" }) +map("i", "", "", { desc = "Move Cursor Left" }) -- End of the word backwards map("n", "E", "ge") @@ -83,8 +83,8 @@ map("n", "u", function() end, { desc = "Toggle Tabline" }) -- Comment box -map("n", "]/", "/\\S\\zs\\s*╭zt", { desc = "Next block comment" }) -map("n", "[/", "?\\S\\zs\\s*╭zt", { desc = "Prev block comment" }) +map("n", "]/", "/\\S\\zs\\s*╭zt", { desc = "Next Block Comment" }) +map("n", "[/", "?\\S\\zs\\s*╭zt", { desc = "Prev Block Comment" }) -- Plugin Info map("n", "cif", "LazyFormatInfo", { desc = "Formatting" }) @@ -114,11 +114,11 @@ map("n", "cir", "LazyRoot", { desc = "Root" }) map("n", "U", "", { desc = "Redo" }) -- Move to beginning/end of line -map("n", "", "_", { desc = "First character of Line" }) -map("n", "", "$", { desc = "Last character of Line" }) +map("n", "", "_", { desc = "First Character of Line" }) +map("n", "", "$", { desc = "Last Character of Line" }) -- Copy whole text to clipboard -map("n", "", ":%y+", { desc = "Copy whole text to clipboard", silent = true }) +map("n", "", ":%y+", { desc = "Copy Whole Text to Clipboard", silent = true }) -- Motion map("c", "", "", { desc = "Start Of Line" }) @@ -126,15 +126,15 @@ map("i", "", "", { desc = "Start Of Line" }) map("i", "", "", { desc = "End Of Line" }) -- Select all text -map("n", "", "ggG", { desc = "Select all text", silent = true, noremap = true }) +map("n", "", "ggG", { desc = "Select all Text", silent = true, noremap = true }) -- Paste options -map("i", "", '"', { desc = "Paste on insert mode" }) -map("v", "p", '"_dP', { desc = "Paste without overwriting" }) +map("i", "", '"', { desc = "Paste on Insert Mode" }) +map("v", "p", '"_dP', { desc = "Paste Without Overwriting" }) -- Delete and change without yanking -map({ "n", "x" }, "", '"_d', { desc = "Delete without yanking" }) -map({ "n", "x" }, "", '"_c', { desc = "Change without yanking" }) +map({ "n", "x" }, "", '"_d', { desc = "Delete Without Yanking" }) +map({ "n", "x" }, "", '"_c', { desc = "Change Without Yanking" }) -- Deleting without yanking empty line map("n", "dd", function() @@ -144,11 +144,11 @@ map("n", "dd", function() else return "dd" end -end, { noremap = true, expr = true, desc = "Don't yank empty line to clipboard" }) +end, { noremap = true, expr = true, desc = "Don't Yank Empty Line to Clipboard" }) -- Search inside visually highlighted text. Use `silent = false` for it to -- make effect immediately. -map("x", "g/", "/\\%V", { silent = false, desc = "Search inside visual selection" }) +map("x", "g/", "/\\%V", { silent = false, desc = "Search Inside Visual Selection" }) -- Search visually selected text (slightly better than builtins in Neovim>=0.8) map("x", "*", [[y/\V=escape(@", '/\')]])