diff --git a/lua/go.lua b/lua/go.lua index 736403b..f55a4f7 100644 --- a/lua/go.lua +++ b/lua/go.lua @@ -88,7 +88,7 @@ function go.setup(cfg) vim.cmd( [[command! DapRerun require'dap'.disconnect();require'dap'.stop();require'dap'.run_last()]]) - vim.cmd([[command! GoDbgStop require'go.dap'.stop()]]) + vim.cmd([[command! GoDbgStop lua require'go.dap'.stop()]]) end diff --git a/lua/go/dap.lua b/lua/go/dap.lua index 56dd27e..1ce293a 100644 --- a/lua/go/dap.lua +++ b/lua/go/dap.lua @@ -120,7 +120,7 @@ M.stop = function() vim.cmd(cmd) end - vim.cmd([[uvmap p]]) + vim.cmd([[vunmap p]]) require'dap'.disconnect() require'dap'.stop(); require"dap".repl.close()