run tests independent of user nvim setup (#39)

* chore(lua_ls): now lua_ls knows about testing functions

* spec: change way how tests srtuctured

* test(config): refactor tests

* test: utils

* refactor(utils): remove not used function

* chore(ci): add test runner

* chore(ci): remove taskfile from deps

* fix: now it works
This commit is contained in:
Smirnov Oleksandr 2023-07-21 02:57:46 +03:00 committed by GitHub
parent b5327cd2eb
commit 5f8466d043
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 88 additions and 125 deletions

View file

@ -9,17 +9,6 @@ function utils.is_tbl_empty(t)
return next(t) == nil
end
---@param s string
---@return string
function utils.rtrim(s)
local n = #s
while n > 0 and s:find("^%s", n) do
n = n - 1
end
return s:sub(1, n)
end
---@param msg string
---@param lvl any
function utils.deferred_notify(msg, lvl)