feat(nvim): add vim.b.ufo_foldlevel_max
This commit is contained in:
parent
8f0f1de6bc
commit
18c27d31eb
1
dots/.config/nvim/after/ftplugin/orgagenda.lua
Normal file
1
dots/.config/nvim/after/ftplugin/orgagenda.lua
Normal file
@ -0,0 +1 @@
|
|||||||
|
vim.b.ufo_foldlevel_max = 1
|
@ -19,6 +19,9 @@ local change_buf_foldlevel_by = function(num)
|
|||||||
else
|
else
|
||||||
foldlevel = 0
|
foldlevel = 0
|
||||||
end
|
end
|
||||||
|
if vim.b.ufo_foldlevel and foldlevel > vim.b.ufo_foldlevel_max then
|
||||||
|
return
|
||||||
|
end
|
||||||
set_buf_foldlevel(foldlevel)
|
set_buf_foldlevel(foldlevel)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user