Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove nesting numbers near the linenumbers #172

Closed
MrBrN197 opened this issue Oct 30, 2023 · 4 comments
Closed

Remove nesting numbers near the linenumbers #172

MrBrN197 opened this issue Oct 30, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@MrBrN197
Copy link

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'

...

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

@MrBrN197 MrBrN197 added the bug Something isn't working label Oct 30, 2023
@xiyaowong
Copy link
Contributor

xiyaowong commented Oct 30, 2023

Important

@Nullarity
Copy link

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

@rockyzhang24
Copy link

rockyzhang24 commented Dec 23, 2023

@Nullarity Two ways:

  1. Make a slight modification to the neovim source code and build it by yourself. You may refer to this comment How can I make it look equal to its configuration #4 (comment)). 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.

@gelocraft
Copy link

gelocraft commented Jul 20, 2024

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

I have this workaround and it did fixed the foldcolumn numbers problem.

vim.o.foldcolumn = 'auto:9'

Setting the foldcolumn to auto:9 will auto adjust/resize the width of foldcolumn and also remove the foldcolumn random numbers. See the docs :h foldcolumn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants