mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-02-03 10:25:52 +00:00
Revert "treesitter: move autogroup definition to augroup module"
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate documentation builds-1 (push) Waiting to run
Treewide Checks / Validate documentation builds-2 (push) Waiting to run
Treewide Checks / Validate documentation builds-3 (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate documentation builds-1 (push) Waiting to run
Treewide Checks / Validate documentation builds-2 (push) Waiting to run
Treewide Checks / Validate documentation builds-3 (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions
This reverts commit 33cc70b4db.
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ida7d935c48909fdfa9978b6e199f222a6a6a6964
This commit is contained in:
parent
33cc70b4db
commit
100d9e59a1
1 changed files with 2 additions and 12 deletions
|
|
@ -21,18 +21,9 @@ in {
|
||||||
|
|
||||||
treesitter.grammars = optionals cfg.addDefaultGrammars cfg.defaultGrammars;
|
treesitter.grammars = optionals cfg.addDefaultGrammars cfg.defaultGrammars;
|
||||||
|
|
||||||
# Define the autogroup for treesitter here rather than in the Lua snippet
|
|
||||||
# to allow overriding more easily. Should be highly unlikely that a user
|
|
||||||
# wants to override, but not impossible.
|
|
||||||
augroups = [
|
|
||||||
{
|
|
||||||
enable = true;
|
|
||||||
name = "nvf_treesitter";
|
|
||||||
clear = true;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
pluginRC.treesitter-autocommands = entryAfter ["basic"] ''
|
pluginRC.treesitter-autocommands = entryAfter ["basic"] ''
|
||||||
|
vim.api.nvim_create_augroup("nvf_treesitter", { clear = true })
|
||||||
|
|
||||||
${lib.optionalString cfg.highlight.enable ''
|
${lib.optionalString cfg.highlight.enable ''
|
||||||
-- Enable treesitter highlighting for all filetypes
|
-- Enable treesitter highlighting for all filetypes
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
|
|
@ -63,7 +54,6 @@ in {
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.wo[0][0].foldmethod = "expr"
|
vim.wo[0][0].foldmethod = "expr"
|
||||||
vim.wo[0][0].foldexpr = "v:lua.vim.treesitter.foldexpr()"
|
vim.wo[0][0].foldexpr = "v:lua.vim.treesitter.foldexpr()"
|
||||||
|
|
||||||
-- This is optional, but is set rather as a sane default.
|
-- This is optional, but is set rather as a sane default.
|
||||||
-- If unset, opened files will be folded by automatically as
|
-- If unset, opened files will be folded by automatically as
|
||||||
-- the files are opened
|
-- the files are opened
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue