From 60e0659d5080df68d92626efdfeaf1c7412b711a Mon Sep 17 00:00:00 2001 From: Craig Rodrigues Date: Tue, 11 Jan 2022 14:35:42 -0800 Subject: [PATCH] Set dap_debug_keymap to true by default (#73) --- README.md | 3 ++- doc/go.txt | 2 ++ lua/go.lua | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 076abfc..5c7b5fe 100644 --- a/README.md +++ b/README.md @@ -429,7 +429,8 @@ require('go').setup({ dap_debug = true, -- set to false to disable dap textobjects = true, -- enable default text jobects through treesittter-text-objects test_runner = 'go', -- richgo, go test, richgo, dlv, ginkgo - dap_debug_keymap = true, -- set keymaps for debugger + dap_debug_keymap = true, -- true: use keymap for debugger defined in go/dap.lua + -- false: do not use keymap in go/dap.lua. you must define your own. dap_debug_gui = true, -- set to true to enable dap gui, highly recommand dap_debug_vt = true, -- set to true to enable dap virtual text build_tags = "tag1,tag2", -- set default build tags diff --git a/doc/go.txt b/doc/go.txt index 71a60be..9f7d426 100644 --- a/doc/go.txt +++ b/doc/go.txt @@ -275,6 +275,8 @@ You can setup go.nvim with following options: gocoverage_sign_priority = 5, dap_debug = true, dap_debug_gui = true, + dap_debug_keymap = true, -- true: use keymap for debugger defined in go/dap.lua + -- false: do not use keymap in go/dap.lua. you must define your own. dap_vt = true, -- false, true and 'all frames' textobjects = true, gopls_cmd = nil, --- you can provide gopls path and cmd if it not in PATH, e.g. cmd = { "/home/ray/.local/nvim/data/lspinstall/go/gopls" } diff --git a/lua/go.lua b/lua/go.lua index db5520d..5fc63a3 100644 --- a/lua/go.lua +++ b/lua/go.lua @@ -30,8 +30,9 @@ _GO_NVIM_CFG = { gocoverage_sign = "█", gocoverage_sign_priority = 5, dap_debug = true, - dap_debug_gui = true, + dap_debug_keymap = true, -- true: use keymap for debugger defined in go/dap.lua + -- false: do not use keymap in go/dap.lua. you must define your own. dap_vt = true, -- false, true and 'all frames' textobjects = true, test_runner = "go", -- richgo, go test, richgo, dlv, ginkgo