Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions lua/pde/go.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ return {
map("n", "<leader>lc", "<cmd>GoCoverage<Cr>", "Go Test Coverage")
map("n", "<leader>lt", "<cmd>GoTest<Cr>", "Go Test")
map("n", "<leader>lR", "<cmd>GoRun<Cr>", "Go Run")
map("n", "<leader>dT", "<cmd>lua require('dap-go').debug_test()<cr>", "Go Debug Test")
map("n", "<leader>dT", "<cmd>lua require('neotest').run.run({ suite = false, strategy = 'dap' })<cr>", "Debug nearest test")

if not client.server_capabilities.semanticTokensProvider then
local semantic = client.config.capabilities.textDocument.semanticTokens
Expand All @@ -115,11 +115,16 @@ return {
{
"nvim-neotest/neotest",
dependencies = {
"nvim-neotest/neotest-go",
{
"fredrikaverpil/neotest-golang",
dependencies = {
"leoluz/nvim-dap-go",
},
},
},
opts = function(_, opts)
vim.list_extend(opts.adapters, {
require "neotest-go",
require "neotest-golang",
})
end,
},
Expand Down