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
No description provided.
The text was updated successfully, but these errors were encountered:
🚀
Sorry, something went wrong.
Hi i readed yout post, how can i change the background color or set colorscheme for the window ?
@bsjaramillo You can't set a colorscheme for a specific window. What you can do is to play with the highlighting as I showed in the article. You will need to find back this line and change the highlighting group used for Normal:
Normal
call nvim_win_set_option(win, 'winhl', 'Normal:ErrorFloat')
For example you could define your own highlighting group and use it like this:
highlight CustomFloatingWindow ctermbg=11 guibg=yellow ctermfg=10 guifg=green call nvim_win_set_option(win, 'winhl', 'Normal:CustomFloatingWindow')
You get something quite ugly but then you just have to tweak the colors:
Some interesting resources:
:h :highlight
:h highlight-args
:h 'winhl'
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: