From 32618ac05bbfe3993e616248c140b62aea06b5e4 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Mon, 4 Mar 2024 20:19:13 +0100 Subject: [PATCH] fix(mappings): remove un-indent mapping in favor of the default --- lua/core/mappings.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 8c6c04c..a903be4 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -62,10 +62,10 @@ vim.keymap.set("", "", "") vim.cmd.aunmenu({ "PopUp.-1-", }) vim.cmd.aunmenu({ "PopUp.How-to\\ disable\\ mouse", }) --- Shift+Tab to unindent -vim.keymap.set("i", "", function () - local cursor = vim.api.nvim_win_get_cursor(0) - local row, col = cursor[1], cursor[2] - vim.cmd.normal("<<") - vim.api.nvim_win_set_cursor(0, { row, col - vim.o.shiftwidth, }) -end) +-- Default bindings that are good to know: +-- insert mode: +-- - indent, see :h i_CTRL-T +-- - un-indent, see :h i_CTRL-D +-- normal mode: +-- - scroll window down lines, see :h CTRL-E +-- - scroll window up lines, see :h CTRL-Y