From 28c5ad837b4de9b35ee1861dde06bd10fdd4444f Mon Sep 17 00:00:00 2001 From: BarryLabs Date: Thu, 12 Jun 2025 21:25:48 -0400 Subject: [PATCH] change treesitter.nix functions --- modules/plugins/treesitter/treesitter.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/plugins/treesitter/treesitter.nix b/modules/plugins/treesitter/treesitter.nix index d88cc1a9..99deb969 100644 --- a/modules/plugins/treesitter/treesitter.nix +++ b/modules/plugins/treesitter/treesitter.nix @@ -25,14 +25,14 @@ in { type = listOf package; default = []; example = literalExpression '' - pkgs.vimPlugins.nvim-treesitter.builtGrammars; [ - regex - kdl + pkgs.tree-sitter-grammars; [ + tree-sitter-regex + tree-sitter-kdl ]; ''; description = '' List of treesitter grammars to install. For grammars to be installed properly, - you must use grammars from `pkgs.vimPlugins.nvim-treesitter.builtGrammars`. + you must use grammars from `pkgs.tree-sitter-grammars`. For languages already supported by nvf, you may use {option}`vim.language..treesitter` options, which will automatically add @@ -55,7 +55,7 @@ in { internal = true; readOnly = true; type = listOf package; - default = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [c lua vim vimdoc query]; + default = with pkgs.tree-sitter-grammars; [tree-sitter-c tree-sitter-lua tree-sitter-vim]; description = '' A list of treesitter grammars that will be installed by default if treesitter has been enabled and {option}`vim.treeesitter.addDefaultGrammars`