-
-
Notifications
You must be signed in to change notification settings - Fork 917
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
fix(ui): notifications appearing on top in unintended situations #2093
Conversation
Use the following
|
What UI situations would happen in which you would not want the notification to appear on the top? I am not sure I can think of one |
A screenshot might be helpful as well showing the unintended behavior |
@mehalter The Noice cmdline. In my opinion it makes more sense to have the cmdline always appear on top, especially when entering cmdline mode after a notification appears. From what I can tell, setting the zindex 150 is low enough that it notifications appear above the cmdline while remaining underneath mason and lazy. |
@Subjective if you set it to Edit: I did test this and it doesn't work quite as nicely as I would prefer so we will just make it slightly less |
Co-authored-by: Micah Halter <micah@mehalter.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thanks for taking the time to open a PR to resolve this :)
* fix(ui): notifications appearing on top in unintended situations * fix(ui): increase notification zindex to 175 Co-authored-by: Micah Halter <micah@mehalter.com> --------- Co-authored-by: Micah Halter <micah@mehalter.com>
* fix(ui): notifications appearing on top in unintended situations * fix(ui): increase notification zindex to 175 Co-authored-by: Micah Halter <micah@mehalter.com> --------- Co-authored-by: Micah Halter <micah@mehalter.com>
* fix(ui): notifications appearing on top in unintended situations * fix(ui): increase notification zindex to 175 Co-authored-by: Micah Halter <micah@mehalter.com> --------- Co-authored-by: Micah Halter <micah@mehalter.com>
* fix(ui): notifications appearing on top in unintended situations * fix(ui): increase notification zindex to 175 Co-authored-by: Micah Halter <micah@mehalter.com> --------- Co-authored-by: Micah Halter <micah@mehalter.com>
* fix(utils): load treesitter when making notifications * fix(treesitter): ensure markdown treesitter parser * feat: add `vim.g.git_worktrees` to enable usage of detached git working trees (#2092) * feat(options): add setting to enable git integration for custom worktrees * fix(autocmds): add additional check for AstroGitFile to see if file is in custom worktree * refactor(autocmds): extract `in_worktree()` to custom utility function `find_worktree()` * feat(mappings): allow toggle lazygit to automatically load git worktrees if available * chore(mappings): cleanup redundant toggle lazygit mapping * refactor: clean up implementation of git worktrees * fix(ui): notifications appearing on top in unintended situations (#2093) * fix(ui): notifications appearing on top in unintended situations * fix(ui): increase notification zindex to 175 Co-authored-by: Micah Halter <micah@mehalter.com> --------- Co-authored-by: Micah Halter <micah@mehalter.com> * feat: include tables for all map modes in `mappings` and `lsp.mappings` * chore: use `vim.ui.open` if it's available * fix(utils): set cursor in a better position (#2094) * fix: disable `lua_ls` formatting with Neoconf * fix(lsp): hacky fix for neoconf lazy loading * fix(heirline): improve lualine integration with statusline * refactor: simplify notification formatting implementation * fix(utils): update `is_available` to use the correct lazy API * chore(snapshot): update lazy_snapshot --------- Co-authored-by: Josh <56745535+Subjective@users.noreply.github.com> Co-authored-by: Tiago Muniz de Araujo <tiagomuniz130@gmail.com>
* fix(ui): notifications appearing on top in unintended situations * fix(ui): increase notification zindex to 175 Co-authored-by: Micah Halter <micah@mehalter.com> --------- Co-authored-by: Micah Halter <micah@mehalter.com>
…roNvim#2093) * fix(ui): notifications appearing on top in unintended situations * fix(ui): increase notification zindex to 175 Co-authored-by: Micah Halter <micah@mehalter.com> --------- Co-authored-by: Micah Halter <micah@mehalter.com>
This fixes an issue where notifications were obscuring UI elements of plugins like Noice.