mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(notifier): modifiable
This commit is contained in:
parent
d9a1f23e21
commit
fd57c24301
1 changed files with 3 additions and 1 deletions
|
@ -67,7 +67,7 @@ Snacks.config.style("notification", {
|
|||
})
|
||||
|
||||
---@class snacks.notifier.Config
|
||||
---@field keep? fun(notif: snacks.notifier.Notif): boolean
|
||||
---@field keep? fun(notif: snacks.notifier.Notif): boolean # global keep function
|
||||
local defaults = {
|
||||
timeout = 3000, -- default timeout in ms
|
||||
width = { min = 40, max = 0.4 },
|
||||
|
@ -343,7 +343,9 @@ function N:render(notif)
|
|||
msg = hl("", notif.level),
|
||||
},
|
||||
}
|
||||
vim.bo[buf].modifiable = true
|
||||
render(buf, notif, ctx)
|
||||
vim.bo[buf].modifiable = false
|
||||
|
||||
local lines = vim.api.nvim_buf_get_lines(buf, 0, -1, false)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue