Compare commits

..

4 commits

Author SHA1 Message Date
8692d195c4
treewide: revert back to builtGrammars from grammarPlugins
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I5c24036a40ec6f2cc8bd85a1cc8e2db06a6a6964
2026-01-06 15:17:08 +03:00
b75bd3b8a8
pins: switch to main branch for nvim-treesitter-textobjects
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Idfe208e4a09113b215fd263234e1dc686a6a6964
2026-01-06 15:17:07 +03:00
4604bcd984
plugins/treesitter: clean up module comments
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6c229cfb1bd1157a8130d456679e69fa6a6a6964
2026-01-06 15:17:06 +03:00
f5c5ea9211
wrapper/build: force installQueries for all grammars
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I73ca575e1ede9972d3658eb89242023a6a6a6964
2026-01-06 15:17:05 +03:00
2 changed files with 11 additions and 8 deletions

View file

@ -39,7 +39,8 @@ in {
];
};
# For some reason treesitter highlighting does not work on start if this is set before syntax on
# For some reason treesitter highlighting does not work on start if this
# is set before 'syntax on' or similar.
pluginRC.treesitter-fold = mkIf cfg.fold (entryBefore ["basic"] ''
-- This is required by treesitter-context to handle folds
vim.o.foldmethod = "expr"
@ -54,8 +55,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 = {},
@ -74,9 +75,8 @@ 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,7 +85,6 @@ in {
node_incremental = false,
scope_incremental = false,
node_decremental = false,
},
},
}

View file

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