Add fold support for comment blocks in PHP

Introduce a new query file to enable folding of comment blocks,
including docblocks, enhancing code readability and organization.
This commit is contained in:
Ray Elliott 2026-01-13 20:12:02 +00:00
parent 442d10363b
commit 51e5c2a602
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
;; extends
;; Fold comment blocks (including /** */ docblocks)
(comment) @fold

View File

@ -26,7 +26,7 @@ return {
-- Open folds when searching -- Open folds when searching
open_fold_hl_timeout = 150, open_fold_hl_timeout = 150,
close_fold_kinds_for_ft = { close_fold_kinds_for_ft = {
default = { 'imports', 'comment' }, default = { 'imports' },
}, },
preview = { preview = {
win_config = { win_config = {