initialize with first MVP
This commit is contained in:
26
lua/test-samurai/config.lua
Normal file
26
lua/test-samurai/config.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
local M = {}
|
||||
|
||||
M.defaults = {
|
||||
runner_modules = {
|
||||
"test-samurai.runners.go",
|
||||
"test-samurai.runners.js-jest",
|
||||
"test-samurai.runners.js-mocha",
|
||||
"test-samurai.runners.js-vitest",
|
||||
},
|
||||
}
|
||||
|
||||
M.options = vim.deepcopy(M.defaults)
|
||||
|
||||
function M.setup(opts)
|
||||
if not opts or next(opts) == nil then
|
||||
M.options = vim.deepcopy(M.defaults)
|
||||
return
|
||||
end
|
||||
M.options = vim.tbl_deep_extend("force", M.defaults, opts)
|
||||
end
|
||||
|
||||
function M.get()
|
||||
return M.options
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user