mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/treesitter: extraConfiguLua -> luaConfig
This commit is contained in:
parent
e60af13695
commit
c0550513b3
1 changed files with 2 additions and 6 deletions
|
@ -102,7 +102,6 @@ helpers.neovim-plugin.mkNeovimPlugin {
|
||||||
# treesitter-nu-grammar = pkgs.tree-sitter-grammars.tree-sitter-nu;
|
# treesitter-nu-grammar = pkgs.tree-sitter-grammars.tree-sitter-nu;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
programs.nixvim.plugins = {
|
programs.nixvim.plugins = {
|
||||||
treesitter = {
|
treesitter = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -110,9 +109,7 @@ helpers.neovim-plugin.mkNeovimPlugin {
|
||||||
grammarPackages = pkgs.vimPlugins.nvim-treesitter.passthru.allGrammars ++ [
|
grammarPackages = pkgs.vimPlugins.nvim-treesitter.passthru.allGrammars ++ [
|
||||||
treesitter-nu-grammar
|
treesitter-nu-grammar
|
||||||
];
|
];
|
||||||
};
|
luaConfig.post=
|
||||||
|
|
||||||
extraConfigLua =
|
|
||||||
'''
|
'''
|
||||||
do
|
do
|
||||||
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
|
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
|
||||||
|
@ -130,15 +127,14 @@ helpers.neovim-plugin.mkNeovimPlugin {
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
''';
|
''';
|
||||||
|
};
|
||||||
|
|
||||||
# Add as extra plugins so that their `queries/{language}/*.scm` get
|
# Add as extra plugins so that their `queries/{language}/*.scm` get
|
||||||
# installed and can be picked up by `tree-sitter`
|
# installed and can be picked up by `tree-sitter`
|
||||||
extraPlugins = [
|
extraPlugins = [
|
||||||
treesitter-nu-grammar
|
treesitter-nu-grammar
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue