Closed chunxuan-hs closed 1 month ago
nvim 0.9.4
macos 13
Could not change the color of highlight group.
Codes to change the color
hi UfoFoldedBg guibg=#f43753
Basic config
lua << EOF vim.o.foldcolumn = '1' vim.o.foldlevel = 99 vim.o.foldlevelstart = 99 vim.o.foldenable = true require('ufo').setup({ open_fold_hl_timeout = 0 }) vim.keymap.set('n', 'zR', require('ufo').openAllFolds) vim.keymap.set('n', 'zM', require('ufo').closeAllFolds) -- vim.keymap.set('n', 'zr', require('ufo').openFoldsExceptKinds) -- vim.keymap.set('n', 'zm', require('ufo').closeFoldsWith) EOF
The color do not change:
However, it seems the UfoFoldedBg has been set correctly.
Expect a different highligh color for the folded line.
Many thanks!
https://github.com/kevinhwang91/nvim-ufo/blob/65dda6360879f6ffe0278163b9192a573a0d2a08/lua/ufo/highlight.lua#L35-L54
Neovim version (nvim -v | head -n1)
nvim 0.9.4
Operating system/version
macos 13
How to reproduce the issue
Could not change the color of highlight group.
Codes to change the color
Basic config
Expected behavior
The color do not change:
However, it seems the UfoFoldedBg has been set correctly.
Actual behavior
Expect a different highligh color for the folded line.
Many thanks!