From e1247f15de5aad4e827a8daedf43cc5f78352c8f Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Sun, 29 Dec 2024 13:10:41 +0100 Subject: [PATCH] ufo: add filetype exclusions --- lua/nxvim/plugins/ufo.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/nxvim/plugins/ufo.lua b/lua/nxvim/plugins/ufo.lua index 55f0a34..ccfa450 100644 --- a/lua/nxvim/plugins/ufo.lua +++ b/lua/nxvim/plugins/ufo.lua @@ -26,6 +26,11 @@ ufo.setup({ }, }, enable_get_fold_virt_text = false, + provider_selector = function(bufnr, filetype, buftype) + for _, type in ipairs({ "markdown", "NeogitStatus" }) do + if filetype == type then return "" end + end + end, }) -- ]