-
-
Notifications
You must be signed in to change notification settings - Fork 69
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] Bring notification windows up top when old ones expire #105
Comments
+1 For this feature! |
OK now implemented by default for the |
It is very nice! I think these neovim notifications look better than any other IDE. |
@rcarriga is there an example somewhere showing how to set it up for static stage? |
Sure, the only thing needed is to use the Here are the static stages adapted: local notify = require("notify")
local stages_util = require("notify.stages.util")
notify.setup({
stages = {
function(state)
local next_height = state.message.height + 2
local next_row = stages_util.available_slot(
state.open_windows,
next_height,
stages_util.DIRECTION.TOP_DOWN
)
if not next_row then
return nil
end
return {
relative = "editor",
anchor = "NE",
width = state.message.width,
height = state.message.height,
col = vim.opt.columns:get(),
row = next_row,
border = "rounded",
style = "minimal",
}
end,
function(state, win)
return {
row = {
stages_util.slot_after_previous(win, state.open_windows, stages_util.DIRECTION.TOP_DOWN),
frequency = 3,
complete = function()
return true
end,
},
col = { vim.opt.columns:get() },
time = true,
}
end,
},
}) You can tweak The complete option is to prevent windows from remaining open just because they're moving upwards. |
Thank you for this plugin!
Is it possible to configure to bring existing notification up (to the top right of the window) when old ones expire?
Because it is inconvenient to have hanging notification at the middle of the screen for 5 sec just after my LSP has been ready...
The text was updated successfully, but these errors were encountered: