nvimdev / lspsaga.nvim

improve neovim lsp experience
MIT License
3.37k stars 285 forks source link

How to cancel the shadow of the floating frame #1436

Closed renjinxi closed 2 months ago

renjinxi commented 2 months ago
image
zennolux commented 2 months ago

That needs your colorscheme's support, nothing about itself

renjinxi commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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