Enable support for unit testing and debugging
This commit is contained in:
parent
27db0a8a65
commit
94b03f2b0c
@ -10,3 +10,10 @@ map("v", "Q", "<cmd>norm @q<CR>")
|
|||||||
-- Easier in-file navigation with Tab and S-Tab
|
-- Easier in-file navigation with Tab and S-Tab
|
||||||
map("n", "<S-Tab>", "<C-U>")
|
map("n", "<S-Tab>", "<C-U>")
|
||||||
map("n", "<Tab>", "<C-D>")
|
map("n", "<Tab>", "<C-D>")
|
||||||
|
|
||||||
|
-- Testing
|
||||||
|
map("n", "<leader>tr", "require('neotest').run.run()<CR>")
|
||||||
|
map("n", "<leader>td", "require('dap-go').debug_test()<CR>")
|
||||||
|
map("n", "<leader>to", "require('neotest').output.open({enter = true})<CR>")
|
||||||
|
map("n", "<leader>tS", "require('neotest').run.stop()<CR>")
|
||||||
|
map("n", "<leader>ts", "require('neotest').summary.toggle()<CR>")
|
||||||
|
@ -12,6 +12,8 @@ require("lazy").setup({
|
|||||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||||
-- import any extras modules here
|
-- import any extras modules here
|
||||||
{ import = "lazyvim.plugins.extras.editor.leap" },
|
{ import = "lazyvim.plugins.extras.editor.leap" },
|
||||||
|
{ import = "lazyvim.plugins.extras.test.core" },
|
||||||
|
{ import = "lazyvim.plugins.extras.dap.core" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.go" },
|
{ import = "lazyvim.plugins.extras.lang.go" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.json" },
|
{ import = "lazyvim.plugins.extras.lang.json" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.clangd" },
|
{ import = "lazyvim.plugins.extras.lang.clangd" },
|
||||||
|
Loading…
Reference in New Issue
Block a user