From d206395e48173e52d70d240b677d098d3a6bf6b3 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 16 Feb 2024 16:22:46 -0600 Subject: [PATCH] refactor(nvim): improve dedent/indent keys in insert mode --- dots/.config/nvim/lua/core/mappings.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dots/.config/nvim/lua/core/mappings.lua b/dots/.config/nvim/lua/core/mappings.lua index 6c383e8d..5e2fbafe 100755 --- a/dots/.config/nvim/lua/core/mappings.lua +++ b/dots/.config/nvim/lua/core/mappings.lua @@ -103,10 +103,10 @@ M.setup = function() vim.keymap.set("n", "]q", "cnewer", { silent = true, desc = "Quickfix: Newer" }) vim.keymap.set("n", "]q", "colder", { silent = true, desc = "Quickfix: Older" }) - -- Binding to allow shift tab dedent - vim.keymap.set("i", "", "", { silent = true, desc = "Insert: Dedent" }) - -- Binding to allow shift space indent - vim.keymap.set("i", "", "", { silent = true, desc = "Insert: Indent" }) + -- Binding to allow ctrl - < dedent + vim.keymap.set("i", "", "", { silent = true, desc = "Insert: Dedent" }) + -- Binding to allow ctrl - > indent + vim.keymap.set("i", ">", "", { silent = true, desc = "Insert: Indent" }) -- Create newline from anywhere in current line without modifying current line vim.keymap.set("i", "", "o", { silent = true, desc = "Insert: New Line" })