From 6f9391fe56ec2c2a9bbdf0cdce990af48a316de6 Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Thu, 11 May 2023 17:31:02 +0300 Subject: [PATCH] setup ufo --- lua/config/ufo.lua | 12 ++++++++++++ lua/plugins.lua | 1 + 2 files changed, 13 insertions(+) create mode 100644 lua/config/ufo.lua diff --git a/lua/config/ufo.lua b/lua/config/ufo.lua new file mode 100644 index 0000000..430a91c --- /dev/null +++ b/lua/config/ufo.lua @@ -0,0 +1,12 @@ +return { + "kevinhwang91/nvim-ufo", + requires = {"kevinhwang91/promise-async", "nvim-treesitter/nvim-treesitter"}, + config = function () + require("ufo").setup({ + provider_selector = function(bufnr, filetype, buftype) + return {"treesitter", "indent"} + end + }) + vim.highlight.link("UfoFoldedBg", "ColorColumn") + end +} diff --git a/lua/plugins.lua b/lua/plugins.lua index 208926d..4adb370 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -32,6 +32,7 @@ return function(use) use_config "ts-playground" use_config "diffview" use_config "git-conflict" + use_config "ufo" use { "nvim-telescope/telescope.nvim",