kevinhwang91 / nvim-ufo

Not UFO in the sky, but an ultra fold in Neovim.
BSD 3-Clause "New" or "Revised" License
2.18k stars 38 forks source link

Indent guidelines from `indent-blankline.nvim` hidden for folds #105

Closed UtkarshVerma closed 1 year ago

UtkarshVerma commented 1 year ago

Neovim version (nvim -v | head -n1)

NVIM v0.8.2

Operating system/version

Arch Linux

How to reproduce the issue

Normal behaviour, here are the configuration options I used for both the plugins.

  {
    "lukas-reineke/indent-blankline.nvim",
    opts = function(_, opts)
      return vim.tbl_deep_extend("force", opts, {
        char = "▏",
        context_char = "▏",
        char_priority = 40,
        show_current_context = true,
      })
    end,
  },
  {
    "kevinhwang91/nvim-ufo",
    event = "BufReadPost",
    dependencies = { "kevinhwang91/promise-async", "nvim-treesitter/nvim-treesitter" },
    init = function()
      vim.o.foldcolumn = "0" -- Don't show the foldcolumn
      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,
    opts = {
      provider_selector = function()
        return { "treesitter", "indent" }
      end,
    },
  },

Expected behavior

Indent guidelines should not be hidden for the folds.

Actual behavior

image

kevinhwang91 commented 1 year ago

Search issue by yourself.

UtkarshVerma commented 1 year ago

@kevinhwang91 I have already searched that issue and increased the priority of the characters in the config I pasted above. But it did not fix it. Could you please reopen this?

UtkarshVerma commented 1 year ago

I can isolate the issue to show_current_context = true option in the blankline plugin. If I have it as false, then the guidelines are displayed.

kevinhwang91 commented 1 year ago

RTFM of indent-blankline.nvim, have another priority for that.

kevinhwang91 commented 1 year ago

Look like a bug for indent-blankline.nvim