mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat: cleanup keys/cmd handlers when loading a plugin
This commit is contained in:
parent
c98e722fa4
commit
3f517abfa4
6 changed files with 154 additions and 99 deletions
|
@ -161,7 +161,14 @@ end
|
|||
|
||||
---@param msg string|string[]
|
||||
function M.notify(msg, level)
|
||||
msg = type(msg) == "table" and table.concat(msg, "\n") or msg
|
||||
if type(msg) == "table" then
|
||||
msg = table.concat(
|
||||
vim.tbl_filter(function(line)
|
||||
return line or false
|
||||
end, msg),
|
||||
"\n"
|
||||
)
|
||||
end
|
||||
vim.notify(msg, level, {
|
||||
on_open = function(win)
|
||||
vim.wo[win].conceallevel = 3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue