From ec2a7506a36e0aaa4266c5f2dd45b9e347550077 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Tue, 23 Apr 2024 11:04:37 -0500 Subject: [PATCH] added better keybind for treesj. --- .../home-manager/nvim/treesitter/default.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/modules/home-manager/nvim/treesitter/default.nix b/modules/home-manager/nvim/treesitter/default.nix index f9bead4..e0153ab 100644 --- a/modules/home-manager/nvim/treesitter/default.nix +++ b/modules/home-manager/nvim/treesitter/default.nix @@ -29,7 +29,22 @@ extraPlugins = with pkgs.vimPlugins; [ treesj ]; - extraConfigLua = ''require("treesj").setup({})''; + extraConfigLua = '' + require("treesj").setup({ + use_default_keymaps=false, + }) + ''; + keymaps = [ + { + action = ":TSJToggle"; + key = "j"; + mode = "n"; + options = { + silent = true; + desc = "tree sitter join toggle"; + }; + } + ]; }; }; imports = [