Skip to content

Transparency with winblend #4

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

Closed
axieax opened this issue Mar 9, 2022 · 1 comment · Fixed by #6
Closed

Transparency with winblend #4

axieax opened this issue Mar 9, 2022 · 1 comment · Fixed by #6

Comments

@axieax
Copy link
Contributor

axieax commented Mar 9, 2022

Hi, it would be nice to be able to set transparency of the popup window using vim.api.nvim_win_set_option(winnr, "winblend", ?), where ? can be passed in as a config option :))

@axieax
Copy link
Contributor Author

axieax commented Mar 9, 2022

Just realised that you use nui.nvim for popups, so here's a PR to add support for customising its options. Example config for transparency:

require("regexplainer".setup({
  popup = {
    win_options = {
      winblend = 20,
    },
  },
})

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

Successfully merging a pull request may close this issue.

1 participant