Compare commits

..

2 commits

Author SHA1 Message Date
bbc99da250
treewide: revert back to builtGrammars from grammarPlugins
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I5c24036a40ec6f2cc8bd85a1cc8e2db06a6a6964
2026-01-07 10:21:53 +03:00
656a7b3824
pins: switch to main branch for nvim-treesitter-textobjects
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Idfe208e4a09113b215fd263234e1dc686a6a6964
2026-01-07 10:21:52 +03:00
2 changed files with 8 additions and 11 deletions

View file

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

View file

@ -35,11 +35,7 @@
); );
# Build a given Treesitter grammar. # Build a given Treesitter grammar.
buildTreesitterPlug = grammars: buildTreesitterPlug = grammars: vimPlugins.nvim-treesitter.withPlugins (_: grammars);
vimPlugins.nvim-treesitter.withPlugins (_: grammars)
// {
installQueries = true;
};
pluginBuilders = { pluginBuilders = {
nvim-treesitter = buildTreesitterPlug config.vim.treesitter.grammars; nvim-treesitter = buildTreesitterPlug config.vim.treesitter.grammars;