added test runner
This commit is contained in:
parent
5902983705
commit
e4d54113e4
|
|
@ -1,4 +1,3 @@
|
||||||
local vim = vim
|
|
||||||
local execute = vim.api.nvim_command
|
local execute = vim.api.nvim_command
|
||||||
local fn = vim.fn
|
local fn = vim.fn
|
||||||
-- ensure that packer is installed
|
-- ensure that packer is installed
|
||||||
|
|
@ -27,7 +26,6 @@ return require("packer").startup(
|
||||||
require("monokai").setup()
|
require("monokai").setup()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
-- use "folke/tokyonight.nvim"
|
|
||||||
use {
|
use {
|
||||||
"glepnir/galaxyline.nvim",
|
"glepnir/galaxyline.nvim",
|
||||||
branch = "main",
|
branch = "main",
|
||||||
|
|
@ -157,5 +155,13 @@ return require("packer").startup(
|
||||||
require("spellsitter").setup()
|
require("spellsitter").setup()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
use {
|
||||||
|
"rcarriga/vim-ultest",
|
||||||
|
config = function()
|
||||||
|
require "plugins/ultest"
|
||||||
|
end,
|
||||||
|
requires = {"vim-test/vim-test"},
|
||||||
|
run = ":UpdateRemotePlugins"
|
||||||
|
}
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
vim.cmd([[let test#javascript#reactscripts#options = "--watchAll=false"]])
|
||||||
|
vim.cmd([[let test#javascriptreact#reactscripts#options = "--watchAll=false"]])
|
||||||
|
vim.cmd([[let test#typescript#reactscripts#options = "--watchAll=false"]])
|
||||||
|
vim.cmd([[let test#typescriptreact#reactscripts#options = "--watchAll=false"]])
|
||||||
|
vim.cmd([[
|
||||||
|
augroup UltestRunner
|
||||||
|
au!
|
||||||
|
au BufWritePost * UltestNearest
|
||||||
|
augroup END
|
||||||
|
]])
|
||||||
|
vim.g.ultest_virtual_text = 1
|
||||||
|
vim.g.ultest_output_on_run = 0
|
||||||
|
vim.g.ultest_pass_text = "🎉"
|
||||||
|
vim.g.ultest_fail_text = "💥"
|
||||||
|
vim.g.ultest_running_text = "⌛"
|
||||||
Loading…
Reference in New Issue