about summary refs log tree commit diff stats
path: root/modules/by-name/nv/nvim/plgs/treesitter/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/by-name/nv/nvim/plgs/treesitter/default.nix')
-rw-r--r--modules/by-name/nv/nvim/plgs/treesitter/default.nix25
1 files changed, 18 insertions, 7 deletions
diff --git a/modules/by-name/nv/nvim/plgs/treesitter/default.nix b/modules/by-name/nv/nvim/plgs/treesitter/default.nix
index 02088d0a..ed1499f8 100644
--- a/modules/by-name/nv/nvim/plgs/treesitter/default.nix
+++ b/modules/by-name/nv/nvim/plgs/treesitter/default.nix
@@ -1,3 +1,12 @@
+# nixos-config - My current NixOS configuration
+#
+# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# This file is part of my nixos-config.
+#
+# You should have received a copy of the License along with this program.
+# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
 {
   config,
   pkgs,
@@ -6,15 +15,17 @@
 }: let
   cfg = config.soispha.programs.nvim;
 in {
-  home-manager.users.soispha.  programs.nixvim = lib.mkIf cfg.enable {
+  home-manager.users.soispha.programs.nixvim = lib.mkIf cfg.enable {
+    # NOTE: These are required to build grammars, but I already use the nix grammars <2024-07-13>
+    dependencies = {
+      tree-sitter.enable = false;
+      nodejs.enable = false;
+      gcc.enable = false;
+    };
+
     plugins.treesitter = {
       enable = true;
 
-      # NOTE: These are required to build grammars, but I already use the nix grammars <2024-07-13>
-      gccPackage = null;
-      nodejsPackage = null;
-      treesitterPackage = null;
-
       # inject nixvim specific highlighting (eg in extraConfigLua).
       nixvimInjections = true;
 
@@ -39,7 +50,7 @@ in {
           #  Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
           #  Using this option may slow down your editor; and you may see some duplicate highlights.
           #  Instead of true it can also be a list of languages
-          additionalVimRegexHighlighting = ["latex"];
+          additionalVimRegexHighlighting = [];
         };
 
         incrementalSelection = {