Commit graph

16 commits

Author SHA1 Message Date
Dundar Göc
6a4fdb317d chore: fix typos 2021-11-02 23:47:48 +01:00
Andrew He
50af926d81 Folds: remove ending marks for folds; they only confuse vim when multiple closes on the same line are expected 2021-07-18 16:57:57 +00:00
Munif Tanjim
97761acaff Folds: support 'foldminlines' 2021-07-08 21:42:02 +02:00
Andrew He
901406cf7a Folds: fix fold deduplication and improve start/stop logic 2021-07-06 19:00:59 +02:00
Santos Gallegos
be8f656087
Use stylua for autoformat code (#1480) 2021-07-04 21:12:17 +00:00
Grzegorz Rozdzialik
aee9ba401e fix(folds): use the correct rational operator
Fixes a bug introduced in 41ed83ffc7
Closes #1226
2021-04-23 19:27:21 +02:00
Thomas Vigouroux
41ed83ffc7 fix(folds): always fold more than one line 2021-04-22 16:30:31 +02:00
Steven Sojka
6863f79118
refactor(all): language tree adaption (#1105) 2021-03-30 08:18:24 -05:00
Stephan Seitz
ee9dd63ecd fix(folds): has_fold -> has_folds 2020-09-16 10:02:37 +02:00
Santos Gallegos
50991e370b Folds: rename query files to folds.scm to be consistent
We use plural names for all query files except folds.
2020-09-14 18:26:30 +02:00
Santos Gallegos
a5360d02e4 Fold: respect max_fold_level from 'foldnestmax' 2020-09-07 18:24:21 +02:00
Thomas Vigouroux
03621e758c docs(fold): document and comment 2020-09-01 21:51:17 +02:00
Thomas Vigouroux
36d2c7d746 fix(fold): fix #350
Also correctly handle things like :

if (foo) {
}
if (bar) {
}
2020-09-01 21:51:17 +02:00
Thomas Vigouroux
545e5c479a fix(fold): revamp fold
fix(fold): typo

fix(fold): remove debug and add queries

fix(fold): fallback to local scopes for folds
2020-09-01 21:51:17 +02:00
Stephan Seitz
5642507f6a Make luacheck happy 2020-07-05 19:21:06 +02:00
Thomas Vigouroux
fbade728fe feat: add syntax-based folding 2020-05-25 11:19:38 +02:00