From 2779a6d136463e0fbb98a435174487a92ca41d9b Mon Sep 17 00:00:00 2001 From: Michael Flossmann Date: Wed, 11 Sep 2024 10:47:18 +0200 Subject: [PATCH] fix treesitter stuff --- plugins/treesitter.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/treesitter.nix b/plugins/treesitter.nix index 6436780..59c5962 100644 --- a/plugins/treesitter.nix +++ b/plugins/treesitter.nix @@ -10,9 +10,7 @@ # Enable treesitter based indentation (use '=' to auto-indent) settings = { indent.enable = true; - highlight = { - enable = true; - }; + highlight.enable = true; }; # Workaround to enable incremental selection without setting default keymaps (keymaps are set globally) @@ -22,8 +20,6 @@ enable = true; keymaps = lib.mkForce { }; }; - - settings.highlight.enable = true; }; rootOpts = { @@ -86,6 +82,7 @@ "]?" = { query = "@condition.outer"; desc = "Next conditional start"; }; "]l" = { query = "@loop.outer"; desc = "Next loop start"; }; "]c" = { query = "@call.inner"; desc = "Previous call start"; }; + "]/" = { query = "@comment.outer"; desc = "Next comment start"; }; }; gotoNextEnd = { @@ -102,6 +99,7 @@ "[?" = { query = "@condition.outer"; desc = "Previous conditional start"; }; "[l" = { query = "@loop.outer"; desc = "Previous loop start"; }; "[c" = { query = "@call.inner"; desc = "Previous call start"; }; + "[/" = { query = "@comment.outer"; desc = "Previous comment start"; }; }; gotoPreviousEnd = {