summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/fold.lua
AgeCommit message (Collapse)Author
2022-10-31feat(emmy): add emmylua annotationsLewis Russell
2022-09-12fix(fold): don't include whitespace end regionsLewis Russell
Some languages that are difficult to parse via Treesitter may incorrectly include whitespace lines at the end of regions. This can makes the calculated folds sub-optimal. To recitfy, use a custom directive (trim), to calculate the range with the trailing whitespace lines removed. Note this only works if the region end column is 0. Also added folds for Make.
2021-11-02chore: fix typosDundar Göc
2021-07-18Folds: remove ending marks for folds; they only confuse vim when multiple ↵Andrew He
closes on the same line are expected
2021-07-08Folds: support 'foldminlines'Munif Tanjim
2021-07-06Folds: fix fold deduplication and improve start/stop logicAndrew He
2021-07-04Use stylua for autoformat code (#1480)Santos Gallegos
2021-04-23fix(folds): use the correct rational operatorGrzegorz Rozdzialik
Fixes a bug introduced in 41ed83ffc762b611644a311e344b33d5efc01944 Closes #1226
2021-04-22fix(folds): always fold more than one lineThomas Vigouroux
2021-03-30refactor(all): language tree adaption (#1105)Steven Sojka
2020-09-16fix(folds): has_fold -> has_foldsStephan Seitz
2020-09-14Folds: rename query files to folds.scm to be consistentSantos Gallegos
We use plural names for all query files except folds.
2020-09-07Fold: respect max_fold_level from 'foldnestmax'Santos Gallegos
2020-09-01docs(fold): document and commentThomas Vigouroux
2020-09-01fix(fold): fix #350Thomas Vigouroux
Also correctly handle things like : if (foo) { } if (bar) { }
2020-09-01fix(fold): revamp foldThomas Vigouroux
fix(fold): typo fix(fold): remove debug and add queries fix(fold): fallback to local scopes for folds
2020-07-05Make luacheck happyStephan Seitz
2020-05-25feat: add syntax-based foldingThomas Vigouroux