From c0550513b3277954f2362c54c0d0f1a0da3d161d Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Thu, 12 Dec 2024 20:41:18 -0600 Subject: [PATCH] plugins/treesitter: extraConfiguLua -> luaConfig --- plugins/by-name/treesitter/default.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/by-name/treesitter/default.nix b/plugins/by-name/treesitter/default.nix index eb67ed708e..5490d678ba 100644 --- a/plugins/by-name/treesitter/default.nix +++ b/plugins/by-name/treesitter/default.nix @@ -102,7 +102,6 @@ helpers.neovim-plugin.mkNeovimPlugin { # treesitter-nu-grammar = pkgs.tree-sitter-grammars.tree-sitter-nu; in { - programs.nixvim.plugins = { treesitter = { enable = true; @@ -110,9 +109,7 @@ helpers.neovim-plugin.mkNeovimPlugin { grammarPackages = pkgs.vimPlugins.nvim-treesitter.passthru.allGrammars ++ [ treesitter-nu-grammar ]; - }; - - extraConfigLua = + luaConfig.post= ''' do local parser_config = require("nvim-treesitter.parsers").get_parser_configs() @@ -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 ]; - }; - } ```