From 294109247042682bebb7493bdc99eaf886973df4 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Thu, 25 Apr 2024 01:36:58 +0300 Subject: [PATCH] Revert "plugins/treesiter: set up fold after `basic`" This reverts commit 92c94fda20855212571864bd3f2311be185358bf. --- modules/plugins/treesitter/config.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/plugins/treesitter/config.nix b/modules/plugins/treesitter/config.nix index c7bd71a..fd841b0 100644 --- a/modules/plugins/treesitter/config.nix +++ b/modules/plugins/treesitter/config.nix @@ -37,11 +37,11 @@ in { ]; }; - # For some reason treesitter highlighting does not work on start - # if this is set before syntax on - configRC.treesitter-fold = mkIf cfg.fold (entryAfter ["basic"] '' + # For some reason treesitter highlighting does not work on start if this is set before syntax on + configRC.treesitter-fold = mkIf cfg.fold (entryBefore ["basic"] '' set foldmethod=expr set foldexpr=nvim_treesitter#foldexpr() + set nofoldenable ''); luaConfigRC.treesitter = entryAfter ["basic"] ''