Uggla
Uggla

Reputation: 51

Vim plugins overwrite line numbers

After upgrading vim plugins. It appears that some Plugins (Ace, Gitgutter, Coc) overwrite the line numbers. The following screenshot shows the problem at line 20. A '+' has overwritten the line number instead of being placed just before it.

Do you have any idea or fix about what could cause this issue ? Sorry the question is probably not really clear. The goal is to get help pinpointing the shared component that could be responsible for the incorrect display.

vim with line numbers overwritten

Upvotes: 4

Views: 944

Answers (2)

Roman Mahotskyi
Roman Mahotskyi

Reputation: 6655

I also had this issue by copy-pasting coc-nvim config.

The problem was caused by this part of the code

...
if has("nvim-0.5.0") || has("patch-8.1.1564")
  " Recently vim can merge signcolumn and number column into one
  set signcolumn=number
else
  set signcolumn=yes
endif
...

I just replaced it with

...
if has("nvim-0.5.0") || has("patch-8.1.1564")
  " Recently vim can merge signcolumn and number column into one
  set signcolumn=auto
else
  set signcolumn=auto
endif
...

And everything started to work as expected

Upvotes: 4

romainl
romainl

Reputation: 196691

Do you have any idea or fix about what could cause this issue ?

You said it yourself:

It appears that some Plugins (Ace, Gitgutter, Coc) overwrite the line numbers.

  1. Figure out what plugin is causing the issue.
  2. Look for clues in its documentation.
  3. If you can't find anything or nothing works, use its issue tracker.

Upvotes: 2

Related Questions