-
Notifications
You must be signed in to change notification settings - Fork 163
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
Orange Indentline highlight in coc-explorer #172
Comments
Thanks for the very detailed issue report! 🙌 |
What does |
|
There you go, |
Are you using a theme in your terminal which might be overriding grey colors, such as base16-shell? |
indentline is forcing the background color to your terminal's color, so if you rewrote these to orange (like base16-shell does), they will show as orange in Vim too: What happens if you reload the colorscheme, for example with |
The reason why you don't see it in other colorschemes is because gruvbox-material (and all sainnhe's themes) doesn't force a background color, so indentline happily enforces its own color on top. This is a bad default from the plugin in my opinion.
Try this: " Apply custom highlights on colorscheme change.
" Must be declared before executing ':colorscheme'.
augroup custom_highlights_gruvboxmaterial
autocmd!
" reset indentline default
autocmd ColorScheme gruvbox-material
\ hi! Conceal ctermbg=NONE guibg=NONE
augroup END
colorscheme gruvbox-material or in Lua -- Apply custom highlights on colorscheme change.
-- Must be declared before executing ':colorscheme'.
grpid = vim.api.nvim_create_augroup('custom_highlights_gruvboxmaterial', {})
vim.api.nvim_create_autocmd('ColorScheme', {
group = grpid,
pattern = 'gruvbox-material',
command = -- reset indentline default
'hi! Conceal ctermbg=NONE guibg=NONE'
})
vim.cmd'colorscheme gruvbox-material' |
Should be like this
|
Also fixed vimLineComment bug
|
It would be better to fix the The root cause of your issues is that indenline hijacks the |
Actually I have tried to fix |
I have done the following steps before reporting this issue:
Operating system/version
windows but ssh to linux
Terminal emulator/version
All terminal I have used , include tabby , windows terminal, wezterm , mobaxterm
$TERM environment variable
not need
Tmux version
not need
Feature matrix
Open Coc-explore in vim/neovim, either sidebar or float
Minimal vimrc that can reproduce this bug.
not need , It happend when use colorscheme
sonokai
,edge
,gruvbox-material
,everest
After I changed colorscheme to
![image](https://user-images.githubusercontent.com/4470821/233242914-5f2ee622-3d85-46eb-ac42-72c4ddcf8248.png)
nightfox
Steps to reproduce this bug using minimal vimrc
coc.nvim
, andcoc-explore
, and opendcoc-explorer
:inspect
on the orange blockverbose highlight CocExploreIndent
4 got this
Expected behavior
not orange indentline
Actual behavior
orange indentline
The text was updated successfully, but these errors were encountered: