treesitter: allow setting of treesitter max_lines to be string for percentage values

This commit is contained in:
Matthias Putz 2026-03-24 22:19:48 +01:00
commit 7229abc7f3
2 changed files with 7 additions and 3 deletions

View file

@ -444,5 +444,7 @@ https://github.com/gorbit99/codewindow.nvim
- Add `vim.treesitter.indent.excludes` to exclude filetypes from the treesitter
indentation; e.g. useful for Haskell and PureScript, for which treesitter
indentation does not work good
- Allow `vim.treesitter.context.setupOpts.max_lines` to also be given as a
string in order to allow percentage values like `"20%"`
<!-- vim: set textwidth=80: -->