From 5e3e4c4ef684c7466bc3928e524d76dc0b06e082 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Thu, 31 Aug 2023 22:30:55 +0200 Subject: [PATCH] disable folding for now --- lua/custom/plugins/folding.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/custom/plugins/folding.lua b/lua/custom/plugins/folding.lua index dd23bea..1bbef01 100644 --- a/lua/custom/plugins/folding.lua +++ b/lua/custom/plugins/folding.lua @@ -30,6 +30,7 @@ return { 'kevinhwang91/nvim-ufo', dependencies = 'kevinhwang91/promise-async', + enabled = false, event = 'BufReadPost', init = function() -- INFO fold commands usually change the foldlevel, which fixes folds, e.g. @@ -43,7 +44,7 @@ return { end, opts = { provider_selector = function(_, ft, _) - local lspWithOutFolding = { 'markdown' } + local lspWithOutFolding = { 'markdown', 'yaml' } if vim.tbl_contains(lspWithOutFolding, ft) then return { 'treesitter', 'indent' } elseif ft == 'html' then @@ -56,6 +57,5 @@ return { -- use `:UfoInspect` to get available fold kinds from the LSP close_fold_kinds = { 'imports' }, open_fold_hl_timeout = 500, - -- fold_virt_text_handler = foldTextFormatter, }, }