mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-03-21 19:56:00 +00:00
treesitter: remove foldByDefault
This commit is contained in:
parent
618cbe6aac
commit
73f6565474
4 changed files with 9 additions and 3 deletions
|
|
@ -6,7 +6,6 @@
|
|||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.lists) optionals;
|
||||
inherit (lib.nvim.dag) entryAfter;
|
||||
inherit (lib.trivial) boolToString;
|
||||
|
||||
cfg = config.vim.treesitter;
|
||||
in {
|
||||
|
|
@ -55,7 +54,6 @@ in {
|
|||
callback = function()
|
||||
vim.wo[0][0].foldmethod = "expr"
|
||||
vim.wo[0][0].foldexpr = "v:lua.vim.treesitter.foldexpr()"
|
||||
vim.o.foldenable = ${boolToString cfg.foldByDefault}
|
||||
end,
|
||||
})
|
||||
''}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ in {
|
|||
enable = mkEnableOption "treesitter, also enabled automatically through language options";
|
||||
|
||||
fold = mkEnableOption "fold with treesitter";
|
||||
foldByDefault = mkEnableOption "folding by default when a file is opened";
|
||||
autotagHtml = mkEnableOption "autoclose and rename html tag";
|
||||
|
||||
grammars = mkOption {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue