From feb7cd731ef21501916333c04ffcc9701db55381 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Wed, 24 Apr 2024 23:34:39 +0300 Subject: [PATCH] plugins/treesitter: write setup options after `basic` DAG --- modules/plugins/treesitter/config.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/plugins/treesitter/config.nix b/modules/plugins/treesitter/config.nix index cf1d595..fd841b0 100644 --- a/modules/plugins/treesitter/config.nix +++ b/modules/plugins/treesitter/config.nix @@ -7,10 +7,9 @@ inherit (lib.modules) mkIf mkMerge; inherit (lib.lists) optional optionals; inherit (lib.trivial) boolToString; - inherit (lib.nvim.lists) listContainsValues; inherit (lib.nvim.binds) mkSetBinding addDescriptionsToMappings; inherit (lib.nvim.lua) toLuaObject; - inherit (lib.nvim.dag) entryBefore entryAnywhere; + inherit (lib.nvim.dag) entryBefore entryAfter; cfg = config.vim.treesitter; usingNvimCmp = config.vim.autocomplete.enable && config.vim.autocomplete.type == "nvim-cmp"; @@ -45,7 +44,7 @@ in { set nofoldenable ''); - luaConfigRC.treesitter = entryAnywhere '' + luaConfigRC.treesitter = entryAfter ["basic"] '' require('nvim-treesitter.configs').setup { -- Disable imperative treesitter options that would attempt to fetch -- grammars into the read-only Nix store. To add additional grammars here