Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyoon committed Jun 7, 2024
1 parent 81448ec commit f232ab9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
1 change: 1 addition & 0 deletions lua/jupynium/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ function M.setup(opts)
notify_ignore_codes[code] = true
end
vim.g.jupynium_notify_ignore_codes = notify_ignore_codes
vim.print(vim.g.jupynium_notify_ignore_codes)

vim.g.__jupynium_setup_completed = true
end
Expand Down
4 changes: 1 addition & 3 deletions src/jupynium/lua/helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ end

---block until jupynium responds to the message
---@param event string
---@param buf integer
---@param buf integer?
---@param ensure_syncing boolean
---@param ... any
---@return any
Expand Down Expand Up @@ -115,8 +115,6 @@ function Jupynium_execute_javascript(bufnr, code)
return false, nil
end

assert(bufnr ~= nil, "bufnr should not be nil")

-- set ensure_syncing to false, because we checked that already.
return true, Jupynium_rpcrequest("execute_javascript", bufnr, false, code)
end
Expand Down
12 changes: 0 additions & 12 deletions src/jupynium/lua/notify.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,6 @@ 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 f232ab9

Please sign in to comment.