Severel changes.

This commit is contained in:
Fabian Becker
2022-11-07 11:59:10 +01:00
parent 949811bf94
commit 2b3c42121a
16 changed files with 315 additions and 210 deletions

View File

@@ -2,21 +2,28 @@ local nnoremap = require('halfdan.keymap').nnoremap
local neotest = require('neotest')
neotest.setup({
log_level = vim.log.levels.DEBUG,
adapters = {
require("neotest-elixir"),
-- require("neotest-vim-test")({ allow_file_types = { "haskell"} }),
require("neotest-elixir")({
args = { "--trace" },
}),
require("neotest-rust"),
-- require("neotest-vim-test")({ allow_file_types = { "haskell"} }),
},
})
nnoremap("<leader>nt", function ()
nnoremap("<leader>nt", function()
neotest.run.run()
end)
nnoremap("<leader>nf", function ()
nnoremap("<leader>nf", function()
neotest.run.run(vim.fn.expand("%"))
end)
nnoremap("<leader>nd", function ()
neotest.run.run({strategy = "dap"})
nnoremap("<leader>nd", function()
neotest.run.run({ strategy = "dap" })
end)
nnoremap("<leader>ns", function()
neotest.summary.toggle()
end)