feat(nvim): disable ufo in norg files

This commit is contained in:
Price Hiller 2023-04-07 02:22:32 -05:00
parent 8c3aaca883
commit 77c53e6ee3
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -36,9 +36,11 @@ local handler = function(virtText, lnum, endLnum, width, truncate)
return newVirtText
end
local ft_options = { norg = "" }
require("ufo").setup({
provider_selector = function(bufnr, filetype, buftype)
return { "treesitter", "indent" }
return ft_options[filetype] or { "treesitter", "indent" }
end,
fold_virt_text_handler = handler,
disabled = { "norg" },
})