Skip to content

Commit

Permalink
Merge branch 'feat/ignore-notify' of ssh://github.com/kiyoon/jupynium…
Browse files Browse the repository at this point in the history
….nvim into feat/ignore-notify
  • Loading branch information
kiyoon committed Jun 7, 2024
2 parents d98f714 + ae38542 commit c936cd7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/jupynium/lua/notify.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ Jupynium_notify = {}
---@param code string?
Jupynium_notify.notify = function(msg, level, code)
level = level or vim.log.levels.INFO
code = code or ""

if code ~= "" and not vim.g.jupynium_notify_ignore_codes[code] then
return
end

local title
if code ~= "" then
title = ("Jupynium [%s]"):format(code)
else
title = "Jupynium"
end

if code ~= nil and vim.g.jupynium_notify_ignore_codes[code] then
return
Expand Down

0 comments on commit c936cd7

Please sign in to comment.