neoclide / coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Other
24.47k stars 955 forks source link

Coc creates unexpected white spaces in the sign column/number lines when `set signcolumn=number` is enabled. #4747

Closed thunderbird-1990 closed 1 year ago

thunderbird-1990 commented 1 year ago

Result from CocInfo

versions

vim version: VIM - Vi IMproved 9.0 9001848 node version: v20.6.0 coc.nvim version: 0.0.82-bf42a827 2023-09-06 11:47:03 +0800 coc.nvim directory: /home/user/.vim/plugged/coc.nvim term: dumb platform: linux

Log of coc.nvim

2023-09-06T11:38:54.597 INFO (pid:21453) [plugin] - coc.nvim initialized with node: v20.6.0 after 612 2023-09-06T11:38:54.599 INFO (pid:21453) [services] - LanguageClient ESLint state change: stopped => starting 2023-09-06T11:38:54.610 INFO (pid:21453) [language-client-index] - Language server "eslint" started with 21494 2023-09-06T11:38:54.619 INFO (pid:21453) [language-client-index] - Language server "ltex" started with 21495 2023-09-06T11:38:54.753 INFO (pid:21453) [services] - LanguageClient ESLint state change: starting => running 2023-09-06T11:38:54.758 INFO (pid:21453) [services] - service eslint started

Describe the bug

My colour scheme is PaperColor.

Coc creates unexpected white spaces in the sign column/number lines when set signcolumn=number is enabled.

01

This seems to be caused by the highlight groups Coc[x]Line. For instance, with:

highlight CocErrorLine guibg=red
highlight CocWarningLine guibg=red
highlight CocInfoLine guibg=red
highlight CocHintLine guibg=red

02

The red background colour clearly goes into the sign column/number lines.

This is not an issue when using set signcolumn=auto:

03

I mostly use gVim, but this also affects terminal Vim:

highlight CocErrorLine ctermbg=160
highlight CocWarningLine ctermbg=160
highlight CocInfoLine ctermbg=160
highlight CocHintLine ctermbg=160

04

Reproduce the bug

We will close your issue when you don't provide minimal vimrc and we can't reproduce it

Screenshots (optional)

If applicable, add screenshots to help explain your problem.

chemzqm commented 1 year ago

Should be bug of vim.