mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-23 09:21:15 +01:00
plugins/treesitter: drop explicit use of passthru
By definition, `passthru` attrs are available on the derivation. We don't need to use it explicitly when accessing `allGrammars`.
This commit is contained in:
parent
9f8955a868
commit
ff00fe1512
1 changed files with 4 additions and 4 deletions
|
|
@ -120,7 +120,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
{
|
{
|
||||||
programs.nixvim.plugins.treesitter = {
|
programs.nixvim.plugins.treesitter = {
|
||||||
enable = true;
|
enable = true;
|
||||||
grammarPackages = pkgs.vimPlugins.nvim-treesitter.passthru.allGrammars ++ [ treesitter-nu-grammar ];
|
grammarPackages = pkgs.vimPlugins.nvim-treesitter.allGrammars ++ [ treesitter-nu-grammar ];
|
||||||
|
|
||||||
# Register the parser to filetype
|
# Register the parser to filetype
|
||||||
languageRegister.nu = "nu";
|
languageRegister.nu = "nu";
|
||||||
|
|
@ -187,9 +187,9 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
grammarPackages = mkOption {
|
grammarPackages = mkOption {
|
||||||
type = with types; listOf package;
|
type = with types; listOf package;
|
||||||
default = config.plugins.treesitter.package.passthru.allGrammars;
|
default = config.plugins.treesitter.package.allGrammars;
|
||||||
example = literalExpression "pkgs.vimPlugins.nvim-treesitter.passthru.allGrammars";
|
example = literalExpression "pkgs.vimPlugins.nvim-treesitter.allGrammars";
|
||||||
defaultText = literalExpression "config.plugins.treesitter.package.passthru.allGrammars";
|
defaultText = literalExpression "config.plugins.treesitter.package.allGrammars";
|
||||||
description = "Grammar packages to install";
|
description = "Grammar packages to install";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue