mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-22 03:35:21 +02:00
plugins/treesitter: don't exclude nvim-treesitter from combining by default
Nvim-treesitter's parsers from nixpkgs don't include grammars anymore. Originally it was added to standalonePlugins as workaround. If the user has some other plugin containing treesitter queries, this change can cause a build failure due to collisions. But since it is easier to add the plugin to standalonePlugins compared to removing it, I think this should be the default.
This commit is contained in:
parent
65d35db5ca
commit
d063d0dd5e
2 changed files with 31 additions and 35 deletions
|
@ -475,10 +475,5 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
foldmethod = mkDefault "expr";
|
||||
foldexpr = mkDefault "nvim_treesitter#foldexpr()";
|
||||
};
|
||||
|
||||
# Since https://github.com/NixOS/nixpkgs/pull/321550 upstream queries are added
|
||||
# to grammar plugins. Exclude nvim-treesitter itself from combining to avoid
|
||||
# collisions with grammar's queries
|
||||
performance.combinePlugins.standalonePlugins = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue