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

Remove nesting numbers near the linenumbers #172

Closed MrBrN197 closed 8 months ago

MrBrN197 commented 8 months ago

Neovim version (nvim -v | head -n1)

v0.10.0-dev-1353+gaa62579a6

Operating system/version

Ubuntu 22

How to reproduce the issue

cat mini.lua

-- Use Vim packages install the plugin, also work with some plugins manager such as packer.nvim
vim.o.packpath = '~/.local/share/nvim/site'
vim.cmd('packadd promise-async')
vim.cmd('packadd nvim-ufo')

-- 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 --clean +'so mini.lua'

1. 2. 3. ...

Expected behavior

strange numbers on the number line numbers on the column line

Actual behavior

strange numbers on the column line.

how do I get rid of this numbers on the side that show the level of nesting.

image

xiyaowong commented 8 months ago

Important

  • 4

Nullarity commented 6 months ago

And finally, is there a clear answer how to remove these numbers? The link provided didn't help ((

rockyzhang24 commented 6 months ago

@Nullarity Two ways:

  1. Make a slight modification to the neovim source code and build it by yourself. You may refer to this comment https://github.com/kevinhwang91/nvim-ufo/issues/4#issuecomment-1157722074). Note: since neovim 0.9 src/nvim/screen.c was refactored to src/nvim/drawline.c, so make this change in drawline.c.
  2. Need the assistance of another plugin statuscol.nvim. The link above also provides how to config it.