File tree 3 files changed +20
-1
lines changed
3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 23
23
9 . [ User interface] ( #user-interface )
24
24
1 . [ Colors] ( #colors )
25
25
2 . [ Menu] ( #menu )
26
+ 3 . [ Folds] ( #folds )
26
27
10 . [ Advanced search] ( #advanced-search )
27
28
11 . [ Notifications (experimental)] ( #notifications-experimental )
28
29
12 . [ Clocking] ( #clocking )
@@ -1859,6 +1860,21 @@ Each menu item `MenuItem` is one of two types: `MenuOption` and `MenuSeparator`.
1859
1860
1860
1861
In order for the menu to work as expected, the handler must call ` action ` from ` MenuItem ` .
1861
1862
1863
+ ### Folds
1864
+ In Neovim 0.10+, folds are colored with the same highlight as when they are expanded.
1865
+ This is enabled by default to be in line with how Emacs work.
1866
+
1867
+ To use the old way of highlighting folds with ` Folded ` highlight group, add this to config:
1868
+ ``` lua
1869
+ require (' orgmode' ).setup ({
1870
+ ui = {
1871
+ folds = {
1872
+ colored = false
1873
+ }
1874
+ }
1875
+ })
1876
+ ```
1877
+
1862
1878
## Advanced search
1863
1879
1864
1880
Part of [ Advanced search] ( https://orgmode.org/worg/org-tutorials/advanced-searching.html ) functionality
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ vim.bo.modeline = false
24
24
vim .opt_local .fillchars :append (' fold: ' )
25
25
vim .opt_local .foldmethod = ' expr'
26
26
vim .opt_local .foldexpr = ' v:lua.require("orgmode.org.fold").foldexpr()'
27
- if utils .has_version_10 () then
27
+ if utils .has_version_10 () and config . ui . folds . colored then
28
28
vim .opt_local .foldtext = ' '
29
29
else
30
30
vim .opt_local .foldtext = ' v:lua.require("orgmode.org.indent").foldtext()'
Original file line number Diff line number Diff line change @@ -200,6 +200,9 @@ local DefaultConfig = {
200
200
config_path = ' $HOME/.emacs.d/init.el' ,
201
201
},
202
202
ui = {
203
+ folds = {
204
+ colored = true ,
205
+ },
203
206
menu = {
204
207
handler = nil ,
205
208
},
You can’t perform that action at this time.
0 commit comments