Skip to content

Commit

Permalink
plugins/treesitter: extraConfiguLua -> luaConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Dec 13, 2024
1 parent e60af13 commit c055051
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions plugins/by-name/treesitter/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,14 @@ helpers.neovim-plugin.mkNeovimPlugin {
# treesitter-nu-grammar = pkgs.tree-sitter-grammars.tree-sitter-nu;
in
{
programs.nixvim.plugins = {
treesitter = {
enable = true;
settings.indent.enable = true;
grammarPackages = pkgs.vimPlugins.nvim-treesitter.passthru.allGrammars ++ [
treesitter-nu-grammar
];
};
extraConfigLua =
luaConfig.post=
'''
do
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
Expand All @@ -130,15 +127,14 @@ helpers.neovim-plugin.mkNeovimPlugin {
}
end
''';
};
# Add as extra plugins so that their `queries/{language}/*.scm` get
# installed and can be picked up by `tree-sitter`
extraPlugins = [
treesitter-nu-grammar
];
};
}
```
Expand Down

0 comments on commit c055051

Please sign in to comment.