From 0acdd8230b9a1cc60342cdef40bccc74c363de64 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Sat, 20 Jan 2024 16:27:44 +0100 Subject: [PATCH] treejoin and leap S default --- lua/custom/mappings.lua | 18 +++++++++--------- lua/custom/plugins.lua | 9 +++++++++ 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/lua/custom/mappings.lua b/lua/custom/mappings.lua index 6e30ebb..204af95 100644 --- a/lua/custom/mappings.lua +++ b/lua/custom/mappings.lua @@ -105,43 +105,43 @@ M.comment = { M.leap = { plugin = true, n = { - ["s"] = { + ["s"] = { "(leap-forward)", "leap forward", }, - ["S"] = { + ["S"] = { "(leap-backward)", "leap backward", }, - ["gs"] = { + ["gs"] = { "(leap-from-window)", "leap from window", }, }, x = { - ["s"] = { + ["s"] = { "(leap-forward)", "leap forward", }, - ["S"] = { + ["S"] = { "(leap-backward)", "leap forward", }, - ["gs"] = { + ["gs"] = { "(leap-from-window)", "leap from window", }, }, o = { - ["s"] = { + ["s"] = { "(leap-forward)", "leap forward", }, - ["S"] = { + ["S"] = { "(leap-backward)", "leap forward", }, - ["gs"] = { + ["gs"] = { "(leap-from-window)", "leap from window", }, diff --git a/lua/custom/plugins.lua b/lua/custom/plugins.lua index e175b15..78825f6 100644 --- a/lua/custom/plugins.lua +++ b/lua/custom/plugins.lua @@ -625,6 +625,15 @@ local plugins = { end, }, { "kosayoda/nvim-lightbulb", event = { "BufReadPre", "BufNewFile" } }, + { + "Wansmer/treesj", + lazy = false, + cmd = { "TSJJoin", "TSJSplit" }, + keys = { + { "k", "TSJJoin" }, + { "S", "TSJSplit" }, + }, + }, } return plugins