From ae02575277508c4ebe1c16bee9fdfab75dc18b8d Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 3 Jul 2026 17:34:47 +0200 Subject: [PATCH] nvim: collapse use statements folds on file open for php. --- nvim/lua/user/plugins/editor/ufo.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 + } }