disable ufo
This commit is contained in:
parent
6655553eba
commit
9d088fe9d5
@ -2,9 +2,12 @@ return {
|
||||
"kevinhwang91/nvim-ufo",
|
||||
requires = {"kevinhwang91/promise-async", "nvim-treesitter/nvim-treesitter"},
|
||||
config = function ()
|
||||
local default = {"treesitter", "indent"}
|
||||
local filetypes = { c = {'indent'} }
|
||||
|
||||
require("ufo").setup({
|
||||
provider_selector = function(bufnr, filetype, buftype)
|
||||
return {"treesitter", "indent"}
|
||||
return filetypes[filetype] or default
|
||||
end
|
||||
})
|
||||
vim.api.nvim_set_hl(0, "UfoFoldedBg", { link = "ColorColumn" })
|
||||
|
@ -32,7 +32,7 @@ return function(use)
|
||||
use_config "ts-playground"
|
||||
use_config "diffview"
|
||||
use_config "git-conflict"
|
||||
use_config "ufo"
|
||||
-- use_config "ufo"
|
||||
|
||||
use {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
|
Loading…
Reference in New Issue
Block a user