Skip to content

treesitter: make foldenable configurable - #1

Open
heliosran wants to merge 3 commits into
mainfrom
codex/make-foldable-configurable
Open

treesitter: make foldenable configurable#1
heliosran wants to merge 3 commits into
mainfrom
codex/make-foldable-configurable

Conversation

@heliosran

Copy link
Copy Markdown
Owner

Motivation

  • Allow users to control whether folds are enabled by default when Treesitter folding is configured so the default behavior isn't forced by the module.

Description

  • Add a new boolean option vim.treesitter.foldEnable (default false) to the Treesitter options and wire the folding setup to set vim.o.foldenable from cfg.foldEnable instead of hard-coding false.

Testing

  • Attempted to parse the modified Nix files with nix-instantiate --parse modules/plugins/treesitter/treesitter.nix and nix-instantiate --parse modules/plugins/treesitter/config.nix, but nix-instantiate is not available in this environment so parsing could not be validated.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant