kevinhwang91 / nvim-ufo

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

Virtual text errors at top of buffer #149

Closed ribru17 closed 10 months ago

ribru17 commented 10 months ago

Neovim version (nvim -v | head -n1)

NVIM v0.9.1

Operating system/version

Arch Linux 6.4.9

How to reproduce the issue

Ufo setup:

  {
    'kevinhwang91/nvim-ufo',
    dependencies = { 'kevinhwang91/promise-async' },
    config = function()
      require('ufo').setup {
        preview = {
          win_config = {
            border = 'none',
            winhighlight = 'Normal:Folded',
            winblend = 0,
          },
        },
        provider_selector = function(_, _, _)
          return { 'treesitter' }
        end,
      }
    end,
  },

Fold settings:

vim.opt.foldenable = true
vim.opt.foldmethod = 'expr'
vim.o.foldcolumn = '0'
vim.o.foldlevel = 99
vim.o.foldlevelstart = 99

Expected behavior

When folding, everything works fine and there are no text artifacts

Actual behavior

ufobugss

There are weird error messages at the top of the screen

ribru17 commented 10 months ago

Nevermind, I found that this was because of conflicts with gitsigns plugin. Very strange. Changing gitsigns to load on buffer open instead of deferring loading solves the issue. Thanks