mhartington / oceanic-next

Oceanic Next theme for neovim
Other
1.13k stars 141 forks source link

Weird highlight of the "brackets" in floating window #91

Closed thekaganugur closed 3 years ago

thekaganugur commented 3 years ago

Problems summary

I'm using CoC, when I hover to get documentation via float window, the parentheses background color is weird as need in screenshots.

Expected

Proper background color for parentheses on the floating window.

Environment Information

Minimal vim rc

call plug#begin('~/.nvim/plugged')
  Plug 'neoclide/coc.nvim', {'branch': 'release'}
  Plug 'sheerun/vim-polyglot'
  Plug 'mhartington/oceanic-next'
call plug#end()

set termguicolors
colorscheme OceanicNext

" Use K to show documentation in preview window.
nnoremap <silent> K :call <SID>show_documentation()<CR>

function! s:show_documentation()
  if (index(['vim','help'], &filetype) >= 0)
    execute 'h '.expand('<cword>')
  elseif (coc#rpc#ready())
    call CocActionAsync('doHover')
  else
    execute '!' . &keywordprg . " " . expand('<cword>')
  endif
endfunction

The reproduce ways from neovim

  1. Install dependecys
  2. Write console.log() inside an JS/TS file
  3. How with 'K' over log

Screen shot

image

Related

https://github.com/neoclide/coc.nvim/issues/1248 https://github.com/joshdick/onedark.vim/issues/197#issuecomment-574422967 https://github.com/scalameta/coc-metals/issues/309

mhartington commented 3 years ago

I just merged a coc related PR, which I think fixes this? I don't use coc (since nvim has it's lsp built in). Can you pull the latest and test it out?

thekaganugur commented 3 years ago

Yes, it is fixed sorry for the really late reply. :)