-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
[BUG] Should popups be transparent with transparent_mode = true ? #333
Comments
local lsp = vim.lsp
vim.api.nvim_create_autocmd("LspAttach", {
group = vim.api.nvim_create_augroup("UserLspConfig", {}),
callback = function(event)
lsp.handlers["textDocument/hover"] = lsp.with(lsp.handlers.hover, { border = "rounded" })
lsp.handlers["textDocument/signatureHelp"] = lsp.with(lsp.handlers.signature_help, { border = "rounded" })
local opts = { buffer = event.buf }
local map = vim.keymap.set
local lsp_buf = lsp.buf
map("n", "K", lsp_buf.hover, opts)
map("n", "gs", lsp_buf.signature_help, opts)
-- more keymaps
end,
}) |
@xudyang1 this issue is related to all popup windows. |
@timsofteng For Generally, if you want to configure all these plugin popup windows, you have to refer to the plugin's github page. Most configuration options are available in the README, so updating your config may not take too long. Again, If you want to customize the popup border:
require("gruvbox").setup({
overrides = {
LspInfoBorder = {
link = "FloatBorder",
},
}
}) |
hey @timsofteng not sure if that's a bug, and honestly I don't use transparent mode so I am a little biased on how to process with this. If you think you have a good suggestion using an override that can be the default color please open a PR, add some screenshots and we can discuss. How about that? |
I recently moved from the older gruvbox plugin to this one, and while it's nice that this has a built-in transparent mode unlike the stuff I hacked together with the other one, it does basically break popups. Popups should not use transparent backgrounds, they should keep whatever their existing backgrounds are for basic readability. |
Describe the bug
Expected behaviour
We need to mark popups somehow (to keep background or add borders)
Screenshots
The text was updated successfully, but these errors were encountered: