mirror of
https://github.com/tomru/vim.git
synced 2026-03-03 06:27:18 +01:00
try ufo again
This commit is contained in:
@@ -30,17 +30,16 @@ end
|
|||||||
return {
|
return {
|
||||||
'kevinhwang91/nvim-ufo',
|
'kevinhwang91/nvim-ufo',
|
||||||
dependencies = 'kevinhwang91/promise-async',
|
dependencies = 'kevinhwang91/promise-async',
|
||||||
enabled = false,
|
|
||||||
event = 'BufReadPost',
|
event = 'BufReadPost',
|
||||||
init = function()
|
init = function()
|
||||||
-- INFO fold commands usually change the foldlevel, which fixes folds, e.g.
|
-- INFO: fold commands usually change the foldlevel, which fixes folds, e.g.
|
||||||
-- auto-closing them after leaving insert mode, however ufo does not seem to
|
-- auto-closing them after leaving insert mode, however ufo does not seem to
|
||||||
-- have equivalents for zr and zm because there is no saved fold level.
|
-- have equivalents for zr and zm because there is no saved fold level.
|
||||||
-- Consequently, the vim-internal fold levels need to be disabled by setting
|
-- Consequently, the vim-internal fold levels need to be disabled by setting
|
||||||
-- them to 99
|
-- them to 99
|
||||||
vim.opt.foldlevel = 99
|
vim.o.foldlevel = 99
|
||||||
vim.opt.foldlevelstart = 99
|
vim.o.foldlevelstart = 99
|
||||||
vim.opt.foldcolumn = 'auto'
|
vim.o.foldcolumn = 'auto'
|
||||||
end,
|
end,
|
||||||
opts = {
|
opts = {
|
||||||
provider_selector = function(_, ft, _)
|
provider_selector = function(_, ft, _)
|
||||||
|
|||||||
Reference in New Issue
Block a user