mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-16 23:35:13 +00:00
Compare commits
2 commits
8692d195c4
...
bbc99da250
| Author | SHA1 | Date | |
|---|---|---|---|
|
bbc99da250 |
|||
|
656a7b3824 |
2 changed files with 8 additions and 11 deletions
|
|
@ -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,
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue