disable ufo
This commit is contained in:
parent
6655553eba
commit
9d088fe9d5
@ -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" })
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user