From e8793d79a8742f9621a72b6fc8ca70466eee103d Mon Sep 17 00:00:00 2001 From: siph Date: Mon, 12 Aug 2024 21:25:59 -0600 Subject: [PATCH] fix warnings --- config/treesitter/treesitter.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/config/treesitter/treesitter.nix b/config/treesitter/treesitter.nix index 4f6cb6c..9ed6cc9 100644 --- a/config/treesitter/treesitter.nix +++ b/config/treesitter/treesitter.nix @@ -2,7 +2,6 @@ plugins = { treesitter = { enable = true; - indent = false; nixvimInjections = true; languageRegister.nu = "nu"; @@ -11,14 +10,16 @@ grammarPackages = with pkgs; vimPlugins.nvim-treesitter.passthru.allGrammars ++ (with tree-sitter-grammars; [tree-sitter-nu tree-sitter-surrealdb]); + + settings.indent.enable = false; }; }; extraFiles = with pkgs.tree-sitter-grammars; { - "/queries/nu/highlights.scm" = builtins.readFile "${tree-sitter-nu}/queries/nu/highlights.scm"; - "/queries/nu/injections.scm" = builtins.readFile "${tree-sitter-nu}/queries/nu/injections.scm"; + "/queries/nu/highlights.scm".source = "${tree-sitter-nu}/queries/nu/highlights.scm"; + "/queries/nu/injections.scm".source = "${tree-sitter-nu}/queries/nu/injections.scm"; - "/queries/surrealdb/highlights.scm" = builtins.readFile "${tree-sitter-surrealdb}/queries/highlights.scm"; + "/queries/surrealdb/highlights.scm".source = "${tree-sitter-surrealdb}/queries/highlights.scm"; }; filetype = {