Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

rainbow-delimiter.nvim highlight lost when closing folds #307

@registerGen

Description

@registerGen

Neovim version (nvim -v | head -n1)

NVIM v0.12.0-dev-b92e388

Operating system/version

Ubuntu 24.04 on WSL2

How to reproduce the issue

-- repro.lua
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

vim.o.foldcolumn = '1'
vim.o.foldlevel = 99
vim.o.foldlevelstart = 99
vim.o.foldenable = true

vim.api.nvim_create_autocmd("FileType", {
  pattern = "lua",
  callback = function()
    vim.wo.foldmethod = "expr"
    vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()"
  end
})

require("lazy.minit").repro({
  spec = {
    {
      "kevinhwang91/nvim-ufo",
      dependencies = { "kevinhwang91/promise-async" },
      opts = {},
    },
    {
      "HiPhish/rainbow-delimiters.nvim",
      main = "rainbow-delimiters.setup",
      opts = {},
    },
  },
})
nvim -u repro.lua repro.lua

Expected behavior

Image

The highlight of parentheses doesn't lost.

Actual behavior

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions