summaryrefslogtreecommitdiff
path: root/lua/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins')
-rw-r--r--lua/plugins/ufo.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/lua/plugins/ufo.lua b/lua/plugins/ufo.lua
new file mode 100644
index 0000000..71af4d3
--- /dev/null
+++ b/lua/plugins/ufo.lua
@@ -0,0 +1,12 @@
+return {
+ "kevinhwang91/nvim-ufo",
+ dependencies = { "kevinhwang91/promise-async" },
+
+ config = function()
+ require("ufo").setup({
+ provider_selector = function(bufnr, filetype, buftype)
+ return { "treesitter", "indent" }
+ end,
+ })
+ end,
+}