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

No text displayed on folded line #190

Closed Nunwan closed 6 months ago

Nunwan commented 6 months ago

Neovim version (nvim -v | head -n1)

NVIM v0.10.0-dev-813+g5a25dcc5a

Operating system/version

Archlinux 6.6.7

How to reproduce the issue

cat init.lua

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "https://github.com/folke/lazy.nvim.git",
    "--branch=stable", -- latest stable release
    lazypath,
  })
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({{'kevinhwang91/nvim-ufo', dependencies = 'kevinhwang91/promise-async'}})

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

local ufo = require('ufo')
ufo.setup()
vim.keymap.set('n', 'zR', ufo.openAllFolds)
vim.keymap.set('n', 'zM', ufo.closeAllFolds)

nvim (I use lazy but other package manager should do the same ?)

  1. Open a file
  2. fold something (zf5j here)

Expected behavior

It should display the text of the first line (like that : screenshot taken with version 1.3.0) image

Actual behavior

the folded line is completely opaque image

My current workaround is using the v1.3.0 but I prefer reporting the bug ! Sorry if it is a duplicate I did not find the same issue as mine. Tell me if it is just a new configuration change that I did not notice ! Thanks for all the good work :)

kevinhwang91 commented 6 months ago

Update your nightly.

Nunwan commented 6 months ago

Forgot that I was on nightly ... Thanks a lot !

wllenyj commented 3 weeks ago

What's mean the nightly ? -_- !

wllenyj commented 3 weeks ago

What's mean the nightly ? -_- !

I got, the nightly mean that is the version of neovim....