From 49415bde0f1eefa105058695c2e1f95ecd973648 Mon Sep 17 00:00:00 2001 From: blob42 Date: Sat, 16 Sep 2023 05:05:31 +0200 Subject: [PATCH] fix (aka tab) hijacked by grapple + better grapple --- lua/core/mappings.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 8809522..d6ea99c 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -101,7 +101,7 @@ M.general = { --{{{ -- toggle undotree - ["U"] = { vim.cmd.UndotreeToggle, "toggle undotree panel" }, + ["u"] = { vim.cmd.UndotreeToggle, "toggle undotree panel" }, -- line numbers ["N"] = { " set nu! set rnu!", "toggle line number" }, @@ -1040,8 +1040,13 @@ M.grapple = { plugin = true, n = { ["J"] = { " lua require'grapple'.cycle_forward()" }, + [""] = { " lua require'grapple'.cycle_forward()" }, + [""] = { " lua require'grapple'.cycle_forward()" }, ["K"] = { " lua require'grapple'.cycle_backward()" }, + [""] = { " lua require'grapple'.cycle_backward()" }, + [""] = { " lua require'grapple'.cycle_backward()" }, ["T"] = { " GrappleTag"}, + ["U"] = { " GrappleUntag"}, ["GT"] = { function() vim.ui.input({ prompt = "tag: " }, function(input) require("grapple").tag({scope="global"})