diff --git a/lua/custom/lsp/config/gopls.lua b/lua/custom/lsp/config/gopls.lua index e28704e..ebd70c4 100644 --- a/lua/custom/lsp/config/gopls.lua +++ b/lua/custom/lsp/config/gopls.lua @@ -23,6 +23,8 @@ return { -- run the current go file in a vertical split terminal pane vim.keymap.set("n", "", "vsplit term://go run %") + -- open the Go scratchpad + vim.keymap.set("n", "q", "e ~/personal/Go/test/main.go | normal 6G2|") -- Auto organize imports on save vim.api.nvim_create_autocmd("BufWritePre", {