vim.g.mapleader = " " vim.g.maplocalleader = "," -- local kind_icons = { -- Text = "", -- Method = "", -- Function = "⨐", -- Constructor = "", -- Field = "", -- Variable = "μ", -- Class = "", -- Interface = "", -- Module = "", -- Property = "", -- Unit = "", -- Value = "", -- Enum = "", -- Keyword = "", -- Snippet = "", -- Color = "፨", -- File = "", -- Reference = "", -- Folder = "", -- EnumMember = "", -- Constant = "", -- Struct = "", -- Event = "", -- Operator = "", -- TypeParameter = "", -- } local colors = { blue = "#80a0ff", cyan = "#79dac8", black = "#080808", white = "#c6c6c6", red = "#ff5189", violet = "#d183e8", grey = "#303030", } local bubbles_theme = { normal = { a = { fg = colors.black, bg = colors.violet }, b = { fg = colors.white, bg = colors.grey }, c = { fg = colors.white }, }, insert = { a = { fg = colors.black, bg = colors.blue } }, visual = { a = { fg = colors.black, bg = colors.cyan } }, replace = { a = { fg = colors.black, bg = colors.red } }, inactive = { a = { fg = colors.white, bg = colors.black }, b = { fg = colors.white, bg = colors.black }, c = { fg = colors.white }, }, } do function setup() require("ufo").setup({ provider_selector = function(bufnr, filetype, buftype) return { "treesitter", "indent" } end, }) require("ufo").setup({}) vim.o.foldcolumn = "1" -- '0' is not bad vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value vim.o.foldlevelstart = 99 vim.o.foldenable = true end success, output = pcall(setup) -- execute 'setup()' and catch any errors if not success then print("Error on setup for plugin: ufo") print(output) end end