Skip to content

Commit

Permalink
feat(plugins): update nvim notify plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ecosse3 committed Jul 21, 2024
1 parent 91d25cf commit 892650e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lua/plugins/notify.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
return {
{
"rcarriga/nvim-notify",
config = function()
require("notify").setup({
background_colour = "#000000",
})
end,
init = function()
local banned_messages = {
"No information available",
"LSP[tsserver] Inlay Hints request failed. Requires TypeScript 4.4+.",
"LSP[tsserver] Inlay Hints request failed. File not opened in the editor.",
}
vim.notify = function(msg, ...)
for _, banned in ipairs(banned_messages) do
if msg == banned then
return
end
end
return require("notify")(msg, ...)
end
end,
},
}

0 comments on commit 892650e

Please sign in to comment.