------------------------------------------------------------------------------- -- - Vim-test and general testing config - ------------------------------------------------------------------------------- -- make test commands execute using dispatch.vim vim.g["test#strategy"] = "dispatch" vim.g["test#csharp#runner"] = "dotnettest" -- Map test running commands local opts = { silent = true } vim.keymap.set("n", "tn", ":TestNearest", opts) vim.keymap.set("n", "tf", ":TestFile", opts) vim.keymap.set("n", "ts", ":TestSuite", opts) vim.keymap.set("n", "tl", ":TestLast", opts) vim.keymap.set("n", "tg", ":TestVisit", opts) vim.api.nvim_create_user_command("PlenaryTestFile", function() require("plenary.test_harness").test_directory(vim.fn.expand("%:p")) end, {})