Skip to content

Commit 086891d

Browse files
committed
feat(concealer): use empty foldmethod on nightly releases (for full folding passthrough)
1 parent ee020b8 commit 086891d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/neorg/modules/core/concealer/module.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,8 @@ local function handle_init_event(event)
13361336
local wo = vim.wo[event.window]
13371337
wo.foldmethod = "expr"
13381338
wo.foldexpr = vim.treesitter.foldexpr and "v:lua.vim.treesitter.foldexpr()" or "nvim_treesitter#foldexpr()"
1339-
wo.foldtext = "v:lua.require'neorg'.modules.get_module('core.concealer').foldtext()"
1339+
wo.foldtext = utils.is_minimum_version(0, 10, 0) and ""
1340+
or "v:lua.require'neorg'.modules.get_module('core.concealer').foldtext()"
13401341

13411342
local init_open_folds = module.config.public.init_open_folds
13421343
local function open_folds()

0 commit comments

Comments
 (0)