test: unit (#97)
* refactor(utils): remove unused function * fix(installer): actually pass what should be passed * docs: add explanation comment * test: add utils * refactor(utils): flatten the dir of files * remove .luarc
This commit is contained in:
parent
9aa0038125
commit
7af08c9780
8 changed files with 39 additions and 26 deletions
|
|
@ -2,18 +2,6 @@ local c = require "gopher.config"
|
|||
local log = require "gopher._utils.log"
|
||||
local utils = {}
|
||||
|
||||
---@param msg string
|
||||
---@param lvl? number
|
||||
function utils.deferred_notify(msg, lvl)
|
||||
lvl = lvl or vim.log.levels.INFO
|
||||
vim.defer_fn(function()
|
||||
vim.notify(msg, lvl, {
|
||||
title = c.___plugin_name,
|
||||
})
|
||||
log.debug(msg)
|
||||
end, 0)
|
||||
end
|
||||
|
||||
---@param msg string
|
||||
---@param lvl? number
|
||||
function utils.notify(msg, lvl)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue