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

floating window does not respect default background color settings #5

Closed
pengux opened this issue Oct 26, 2022 · 3 comments
Closed

Comments

@pengux
Copy link

pengux commented Oct 26, 2022

My neovim has a transparent background and this work on all windows (including terminals) except for the LF floating term window. Here is an image

image

I've tried to set the highlights but it doesn't seem to change anything. The :ToggleTerm command opens a terminal split with a transparent background though so it doesn't seem that the problem is in toggleterm.nvim

@lmburns
Copy link
Owner

lmburns commented Oct 26, 2022

Actually, setting the highlight group NormalFloat will solve your problem.

require("lf").setup({
    highlights = {
        NormalFloat = {guibg = "NONE"}
    }
})

As an example, I can change the background to white by setting that value to a white color, i.e.,:

require("lf").setup({
    highlights = {
        NormalFloat = {guibg = "#FFFFFF"}
    }
})

0_3_lf____ToggleTerm__1__2022-10-26_11-37

@lmburns
Copy link
Owner

lmburns commented Oct 26, 2022

If this doesn't work, reopen the issue. But since I demonstrated how you can change the background color and make it transparent by setting it to NONE, I will close this issue.

@lmburns lmburns closed this as completed Oct 26, 2022
@pengux
Copy link
Author

pengux commented Oct 26, 2022

Thanks for your tips. The issue seems to be because I have set a transparent background color in the editor, and it doesn't work well with the option winblend = 10. Setting winblend = 0 seems to fix the issue.

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