-- The goal of nvim-ufo is to make Neovim's fold look modern and keep high performance. -- https://github.com/kevinhwang91/nvim-ufo return { { 'kevinhwang91/nvim-ufo', enabled = false, dependencies = { 'kevinhwang91/promise-async', 'nvim-treesitter/nvim-treesitter', 'neovim/nvim-lspconfig', }, keys = { { 'zR', function() require('ufo').openAllFolds() end, }, { 'zM', function() require('ufo').closeAllFolds() end, }, -- { 'zr', function() require('ufo').openFoldsExceptKinds() end }, -- { 'zm', function() require('ufo').closeFoldsWith() end }, }, opts = function() return { -- More advanced config example: https://github.com/rafi/vim-config/blob/master/lua/rafi/plugins/extras/editor/ufo.lua provider_selector = function(bufnr, filetype, buftype) return { 'treesitter', 'indent' } end, } end, }, }