1local key = require("gabrielgio.key")
2
3vim.g["go_def_mode"] = "gopls"
4vim.g["go_info_mode"] = "gopls"
5key.nnoremap("<leader>r", ":GoReferrers<cr>")
6key.nnoremap("<leader>a", ":GoAlternate<cr>")
7key.nnoremap("<leader>s", ":GoRename<cr>")
8key.nnoremap("<leader>i", ":GoImplements<cr>")
9key.nnoremap("<leader>o", ":GoIfErr<cr>")
10key.nnoremap("<leader>gs", ":GoDebugStart .<cr>")
11key.nnoremap("<leader>gc", ":GoDebugContinue<cr>")
12key.nnoremap("<leader>gb", ":GoBuild<cr>")
13key.nnoremap("<leader>gr", ":GoDebugRestart<cr>")
14key.nnoremap("<leader>gn", ":GoRun<cr>")
15key.nnoremap("<leader>gt", ":GoTest<cr>")
16key.nnoremap("<leader>ge", ":exec \":GoDebugPrint \".input(\"eval: \")<cr>")