mirror of
https://github.com/tomru/vim.git
synced 2026-03-03 06:27:18 +01:00
disable folding for now
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
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.
|
||||||
@@ -43,7 +44,7 @@ return {
|
|||||||
end,
|
end,
|
||||||
opts = {
|
opts = {
|
||||||
provider_selector = function(_, ft, _)
|
provider_selector = function(_, ft, _)
|
||||||
local lspWithOutFolding = { 'markdown' }
|
local lspWithOutFolding = { 'markdown', 'yaml' }
|
||||||
if vim.tbl_contains(lspWithOutFolding, ft) then
|
if vim.tbl_contains(lspWithOutFolding, ft) then
|
||||||
return { 'treesitter', 'indent' }
|
return { 'treesitter', 'indent' }
|
||||||
elseif ft == 'html' then
|
elseif ft == 'html' then
|
||||||
@@ -56,6 +57,5 @@ return {
|
|||||||
-- use `:UfoInspect` to get available fold kinds from the LSP
|
-- use `:UfoInspect` to get available fold kinds from the LSP
|
||||||
close_fold_kinds = { 'imports' },
|
close_fold_kinds = { 'imports' },
|
||||||
open_fold_hl_timeout = 500,
|
open_fold_hl_timeout = 500,
|
||||||
-- fold_virt_text_handler = foldTextFormatter,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user