diff --git a/modules/plugins/treesitter/config.nix b/modules/plugins/treesitter/config.nix index dd7888b6..d10e1e89 100644 --- a/modules/plugins/treesitter/config.nix +++ b/modules/plugins/treesitter/config.nix @@ -39,8 +39,7 @@ in { ]; }; - # For some reason treesitter highlighting does not work on start if this - # is set before 'syntax on' or similar. + # For some reason treesitter highlighting does not work on start if this is set before syntax on pluginRC.treesitter-fold = mkIf cfg.fold (entryBefore ["basic"] '' -- This is required by treesitter-context to handle folds vim.o.foldmethod = "expr" @@ -55,8 +54,8 @@ in { pluginRC.treesitter = entryAfter ["basic"] '' require('nvim-treesitter.config').setup { -- Disable imperative treesitter options that would attempt to fetch - -- grammars into the read-only Nix store. To add additional grammars - -- here, you must use the `config.vim.treesitter.grammars` option. + -- grammars into the read-only Nix store. To add additional grammars here + -- you must use the `config.vim.treesitter.grammars` option. auto_install = false, sync_install = false, ensure_installed = {}, @@ -75,8 +74,9 @@ in { }, -- Indentation module for Treesitter - -- Keymaps are set to false here as they are handled by `vim.maps` - -- entries calling Lua functions achieving the same functionality. + -- Keymaps are set to false here as they are + -- handled by `vim.maps` entries calling lua + -- functions achieving the same functionality. incremental_selection = { enable = ${toLuaObject cfg.incrementalSelection.enable}, disable = ${toLuaObject cfg.incrementalSelection.disable}, @@ -85,6 +85,7 @@ in { node_incremental = false, scope_incremental = false, node_decremental = false, + }, }, } diff --git a/modules/wrapper/build/config.nix b/modules/wrapper/build/config.nix index 75ae60eb..68b2c00d 100644 --- a/modules/wrapper/build/config.nix +++ b/modules/wrapper/build/config.nix @@ -35,11 +35,7 @@ ); # Build a given Treesitter grammar. - buildTreesitterPlug = grammars: - vimPlugins.nvim-treesitter.withPlugins (_: grammars) - // { - installQueries = true; - }; + buildTreesitterPlug = grammars: vimPlugins.nvim-treesitter.withPlugins (_: grammars); pluginBuilders = { nvim-treesitter = buildTreesitterPlug config.vim.treesitter.grammars;