File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ local get_matches = ts_utils.memoize_by_buf_tick(function(bufnr)
41
41
end
42
42
end
43
43
44
- if type == ' paragraph' or type == ' drawer' or type == ' property_drawer' then
44
+ if type == ' paragraph' or type == ' drawer' or type == ' property_drawer' or type == ' block ' then
45
45
opts .indent_type = ' other'
46
46
local parent = node :parent ()
47
47
while parent and parent :type () ~= ' section' do
@@ -88,7 +88,7 @@ local function foldexpr()
88
88
return ' >' .. match .stars
89
89
end
90
90
91
- if match .type == ' drawer' or match .type == ' property_drawer' then
91
+ if match .type == ' drawer' or match .type == ' property_drawer' or match . type == ' block ' then
92
92
if match .line_nr == vim .v .lnum then
93
93
return ' a1'
94
94
end
Original file line number Diff line number Diff line change 3
3
(body (paragraph) @OrgParagraph )
4
4
(body (drawer) @OrgDrawer )
5
5
(section (property_drawer) @OrgPropertyDrawer )
6
+ (block) @OrgBlock
You can’t perform that action at this time.
0 commit comments