plugins/treesiter: set up fold after `basic`
This commit is contained in:
parent
103941e270
commit
92c94fda20
|
@ -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 (entryBefore ["basic"] ''
|
||||
# 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"] ''
|
||||
set foldmethod=expr
|
||||
set foldexpr=nvim_treesitter#foldexpr()
|
||||
set nofoldenable
|
||||
'');
|
||||
|
||||
luaConfigRC.treesitter = entryAfter ["basic"] ''
|
||||
|
|
Loading…
Reference in New Issue