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

feature request: add way/docs to disable bg color change of not focused float window #542

Closed
1 task done
dangooddd opened this issue Jan 1, 2025 · 2 comments
Closed
1 task done
Labels
enhancement New feature or request

Comments

@dangooddd
Copy link

Did you check existing requests?

  • I have searched the existing issues

Describe the feature

If it possible, provide any instructions in docs or option in config to disable change of float bg color, when another float stacks on top of it. Example:
hl_changed
As you can see, bg of oil float changes as it is Normal window (actually fg is also changing) when another float opens on top of it (there, it is confirmation float window)

Provide background

I searched how to do that in kanagawa.nvim repo and can not find any issues about that. That will be ok, if for example we will be able to change bg color of border, but that maybe not possible

What is the significance of this feature?

nice to have

Additional details

As i can see, bg colors follows NormalNC highlight group, because setting

dimInactive = true

in kanagawa config changes bg and fg of inactive float. This option does following:

NormalNC = config.dimInactive and { fg = theme.ui.fg_dim, bg = theme.ui.bg_dim } or { link = "Normal" },
@dangooddd dangooddd added the enhancement New feature or request label Jan 1, 2025
@dangooddd
Copy link
Author

Maybe add something line OilNC highlight group and link it to the NormalNC by default if this is caused by NormalNC? Or maybe there is a way to set hl group local to Oil windows?

@dangooddd
Copy link
Author

dangooddd commented Jan 1, 2025

closing issues because docs for that exists: be can customize any of window local options:

require("oil").setup({
     float = {
           win_options = {
                winhighlight = "NormalNC:NormalFloat"
           }
     }
 })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant