diff --git a/lua/keybinds.lua b/lua/keybinds.lua index c875b40..5f4a455 100644 --- a/lua/keybinds.lua +++ b/lua/keybinds.lua @@ -3,6 +3,10 @@ vim.keymap.set("n", "", "", { desc = "Go to split above" }) vim.keymap.set("n", "", "", { desc = "Go to split below" }) vim.keymap.set("n", "", "", { desc = "Go to split on right" }) +vim.keymap.set("n", "|", "v", { desc = "Split window right" }) +vim.keymap.set("n", "-", "s", { desc = "Split window below" }) +vim.keymap.set("n", "wd", "c", { desc = "Delete window" }) + vim.keymap.set("v", "J", ":m '>+1gv=gv", { desc = "Move lines under cursor up" }) vim.keymap.set("v", "K", ":m '<-2gv=gv", { desc = "Move lines under cursor down" }) @@ -14,7 +18,4 @@ vim.keymap.set("x", "p", "\"_dP", { desc = "Paste without replacing clip vim.keymap.set("n", "y", "\"*y", { desc = "Yank into system clipboard" }) vim.keymap.set("v", "y", "\"*y", { desc = "Yank into system clipboard" }) -vim.keymap.set("n", "s", [[:%s/\<\>//gI]], - { desc = "Like `ciw` for any highlighted text (doesn't have to be word)" }) - vim.keymap.set("i", "jk", "", { desc = "Exit insert mode" }) diff --git a/lua/plugins/coding.lua b/lua/plugins/coding.lua index a8a64e2..0e0ab2a 100644 --- a/lua/plugins/coding.lua +++ b/lua/plugins/coding.lua @@ -65,12 +65,12 @@ return { version = false, opts = { mappings = { - add = "gsa", -- Add surrounding in Normal and Visual modes - delete = "gsd", -- Delete surrounding - find = "gsf", -- Find surrounding (to the right) - find_left = "gsF", -- Find surrounding (to the left) - highlight = "gsh", -- Highlight surrounding - replace = "gsr", -- Replace surrounding + add = "gsa", -- Add surrounding in Normal and Visual modes + delete = "gsd", -- Delete surrounding + find = "gsf", -- Find surrounding (to the right) + find_left = "gsF", -- Find surrounding (to the left) + highlight = "gsh", -- Highlight surrounding + replace = "gsr", -- Replace surrounding update_n_lines = "gsn", -- Update `n_lines` }, }, diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index 4af3788..13ee7e6 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -98,7 +98,9 @@ return { vim.keymap.set("n", "fg", builtin.live_grep, { desc = "Grep git_files" }) vim.keymap.set("n", "fh", builtin.help_tags, { desc = "View help tags" }) vim.keymap.set("n", "fb", builtin.buffers, { desc = "Search buffers" }) + vim.keymap.set("n", "sk", builtin.keymaps, { desc = "Resume" }) vim.keymap.set("n", "sR", builtin.resume, { desc = "Resume" }) + vim.keymap.set("n", "st", "TodoTelescope", { desc = "Search TODOs" }) end, }, {