1
0

disable ufo

This commit is contained in:
Rokas Puzonas 2023-05-11 17:31:02 +03:00
parent 6655553eba
commit 9d088fe9d5
2 changed files with 5 additions and 2 deletions

View File

@ -2,9 +2,12 @@ return {
"kevinhwang91/nvim-ufo", "kevinhwang91/nvim-ufo",
requires = {"kevinhwang91/promise-async", "nvim-treesitter/nvim-treesitter"}, requires = {"kevinhwang91/promise-async", "nvim-treesitter/nvim-treesitter"},
config = function () config = function ()
local default = {"treesitter", "indent"}
local filetypes = { c = {'indent'} }
require("ufo").setup({ require("ufo").setup({
provider_selector = function(bufnr, filetype, buftype) provider_selector = function(bufnr, filetype, buftype)
return {"treesitter", "indent"} return filetypes[filetype] or default
end end
}) })
vim.api.nvim_set_hl(0, "UfoFoldedBg", { link = "ColorColumn" }) vim.api.nvim_set_hl(0, "UfoFoldedBg", { link = "ColorColumn" })

View File

@ -32,7 +32,7 @@ return function(use)
use_config "ts-playground" use_config "ts-playground"
use_config "diffview" use_config "diffview"
use_config "git-conflict" use_config "git-conflict"
use_config "ufo" -- use_config "ufo"
use { use {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",