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

How to cancel the shadow of the floating frame #1436

Closed
renjinxi opened this issue May 10, 2024 · 4 comments
Closed

How to cancel the shadow of the floating frame #1436

renjinxi opened this issue May 10, 2024 · 4 comments

Comments

@renjinxi
Copy link

image
@zennolux
Copy link

That needs your colorscheme's support, nothing about itself

@renjinxi
Copy link
Author

That needs your colorscheme's support, nothing about itself

Thank you for your reply. I am new to neovim. I have no shadow on another plug-in (the following is a screenshot). Does it mean that my theme supports canceling the shadow? I hope I can cancel the shadow in the configuration options of the plugin. , I did not find the corresponding configuration option
image

@zennolux
Copy link

Maybe you can try these before setting your colorscheme

vim.cmd([[
 autocmd ColorScheme * highlight NormalFloat guibg=NONE ctermbg=NONE
 autocmd ColorScheme * highlight Float guibg=NONE ctermbg=NONE
 autocmd ColorScheme * highlight FloatBorder guibg=NONE ctermbg=NONE
 autocmd ColorScheme * highlight FloatShadow guibg=NONE ctermbg=NONE
]])
vim.cmd.colorscheme("your colorscheme")

@renjinxi
Copy link
Author

Maybe you can try these before setting your colorschemeMaybe you can try these before setting your colorscheme

vim.cmd([[
autocmd ColorScheme * highlight NormalFloat guibg=NONE ctermbg=NONE
autocmd ColorScheme * highlight Float guibg=NONE ctermbg=NONE
autocmd ColorScheme * highlight FloatBorder guibg=NONE ctermbg=NONE
autocmd ColorScheme * highlight FloatShadow guibg=NONE ctermbg=NONE
]])
vim.cmd.colorscheme("your colorscheme")

Thank you very much for your answer. It worked, but it also changed the behavior of my other plugins. I just want to change the shadow of the floating window of this plugin, but I think the plugin itself does not provide such a configuration, but I Still thank you very much for your answer

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

2 participants