Skip to content

Commit

Permalink
dap(go): add do dap config
Browse files Browse the repository at this point in the history
  • Loading branch information
liubang committed May 4, 2024
1 parent a316f91 commit 054f44a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lua/plugins/dap/dap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ dap.listeners.before.event_terminated["dapui_config"] = function()
vim.api.nvim_command("DapVirtualTextDisable")
end

require("dap-go").setup()

dap.adapters.codelldb = {
type = "server",
port = "${port}",
Expand Down
1 change: 1 addition & 0 deletions lua/plugins/dap/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ return {
{ "<leader>de", function() require("dapui").eval() end, desc = "Eval", mode = {"n", "v"} },
},
},
{ "leoluz/nvim-dap-go" },
{
"mfussenegger/nvim-dap",
config = function()
Expand Down
4 changes: 2 additions & 2 deletions lua/plugins/dap/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ require("dapui").setup({
{ id = "stacks", size = 0.25 },
{ id = "watches", size = 0.25 },
},
size = 45,
position = "right",
size = 50,
position = "left",
},
{
elements = {
Expand Down

0 comments on commit 054f44a

Please sign in to comment.