diff --git a/nvim/lua/user/plugins/editor/ufo.lua b/nvim/lua/user/plugins/editor/ufo.lua index 3695830..f924291 100644 --- a/nvim/lua/user/plugins/editor/ufo.lua +++ b/nvim/lua/user/plugins/editor/ufo.lua @@ -4,5 +4,15 @@ return { dependencies = { 'kevinhwang91/promise-async', }, - opts = {} + opts = { + close_fold_kinds_for_ft = { + php = {'namespace_use_declaration'} + }, + provider_selector = function(bufnr, filetype, buftype) + _ = bufnr + _ = filetype + _ = buftype + return {'treesitter', 'indent'} + end + } }