mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-03-15 21:26:03 +00:00
wrapper/build: allow nulling treesitter grammars
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Iafdfb65fbaf24b7fa95c99a6bc4fa9176a6a6964
This commit is contained in:
parent
11933c5538
commit
f298adc193
2 changed files with 7 additions and 1 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
`vimPlugins.nvim-treesitter`. Namely, it changes from the frozen `master`
|
`vimPlugins.nvim-treesitter`. Namely, it changes from the frozen `master`
|
||||||
branch to the new main branch. This change removes incremental selections, so
|
branch to the new main branch. This change removes incremental selections, so
|
||||||
it is no longer available.
|
it is no longer available.
|
||||||
|
|
||||||
- [obsidian.nvim] now uses a maintained fork which has removed the `dir`
|
- [obsidian.nvim] now uses a maintained fork which has removed the `dir`
|
||||||
setting. Use `workspaces` instead:
|
setting. Use `workspaces` instead:
|
||||||
|
|
||||||
|
|
@ -78,6 +79,8 @@
|
||||||
[NotAShelf](https://github.com/notashelf):
|
[NotAShelf](https://github.com/notashelf):
|
||||||
|
|
||||||
- Lazyload noice.nvim and nvim-web-devicons on `DeferredUIEnter`
|
- Lazyload noice.nvim and nvim-web-devicons on `DeferredUIEnter`
|
||||||
|
- Allow nulling treesitter packages for various language modules, filter `null`
|
||||||
|
values in `vim.treesitter.grammars`.
|
||||||
|
|
||||||
[jfeo](https://github.com/jfeo):
|
[jfeo](https://github.com/jfeo):
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,10 @@
|
||||||
);
|
);
|
||||||
|
|
||||||
# Build a given Treesitter grammar.
|
# Build a given Treesitter grammar.
|
||||||
buildTreesitterPlug = grammars: vimPlugins.nvim-treesitter.withPlugins (_: grammars);
|
buildTreesitterPlug = grammars:
|
||||||
|
vimPlugins.nvim-treesitter.withPlugins (
|
||||||
|
_: builtins.filter (g: g != null) grammars
|
||||||
|
);
|
||||||
|
|
||||||
pluginBuilders = {
|
pluginBuilders = {
|
||||||
nvim-treesitter = buildTreesitterPlug config.vim.treesitter.grammars;
|
nvim-treesitter = buildTreesitterPlug config.vim.treesitter.grammars;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue