Skip to content

Commit

Permalink
fix(lib): schedule notify
Browse files Browse the repository at this point in the history
See #74
  • Loading branch information
rcarriga committed Jul 26, 2022
1 parent 1168657 commit aab54ae
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions lua/neotest/lib/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ M.func_util = require("neotest.lib.func_util")
M.treesitter = require("neotest.lib.treesitter")

M.notify = function(msg, level, opts)
return vim.notify(
msg,
level,
vim.tbl_extend("keep", opts or {}, {
title = "Neotest",
icon = "",
})
)
vim.schedule(function()
return vim.notify(
msg,
level,
vim.tbl_extend("keep", opts or {}, {
title = "Neotest",
icon = "",
})
)
end)
end

M.vim_test = require("neotest.lib.vim_test")
Expand Down

0 comments on commit aab54ae

Please sign in to comment.