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

Wrong highlight group in coc.nvim floating window #178

Open
davidsierradz opened this issue Jul 23, 2019 · 0 comments
Open

Wrong highlight group in coc.nvim floating window #178

davidsierradz opened this issue Jul 23, 2019 · 0 comments

Comments

@davidsierradz
Copy link

davidsierradz commented Jul 23, 2019

Hi, from this minimal init.vim:

vim version: NVIM v0.4.0-1385-g5cccfa7c5
term: alacritty
platform: linux
call plug#begin('~/.local/share/nvim/plugged')
Plug 'gruvbox-community/gruvbox'
Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}
Plug 'othree/yajs.vim'
" Plug 'pangloss/vim-javascript'
call plug#end()
set background=light
colorscheme gruvbox

Open a javascript file with yajs.vim:

vim-yajs

Open a javascript file with vim-javascript:

vim-pangloss

Looks like something related to Normal vs NormalFloat highlight, from :help api-floatwin:

By default, floats will use hl-NormalFloat as normal highlight, which
links to hl-Pmenu in the builtin color scheme.

Thanks!

Edit:

Looks like if I run :highlight clear Normal or remove this lines from syntax/javascript.vim:

syntax/javascript.vim
437:  HiLink javascriptOpSymbol             Normal
440:  HiLink javascriptParens               Normal
509:  HiLink javascriptComma                Normal

fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant