add gotest keybinding

This commit is contained in:
Lucas Barbieri 2024-03-28 16:36:50 -03:00
parent 2776743ffd
commit f5d0ece44c

View File

@ -57,6 +57,7 @@ keymap.set("n", "<leader>gsy", "<cmd>GoTagAdd yaml <CR>", { desc = "Add yaml str
keymap.set("n", "<A-.>", "<cmd>bnext<CR>", { desc = "Go to next Buffer" }) keymap.set("n", "<A-.>", "<cmd>bnext<CR>", { desc = "Go to next Buffer" })
keymap.set("n", "<A-,>", "<cmd>bprev<CR>", { desc = "Go to previous Buffer" }) keymap.set("n", "<A-,>", "<cmd>bprev<CR>", { desc = "Go to previous Buffer" })
keymap.set("n", "<A-x>", "<cmd>bdelete<CR>", { desc = "Delete current buffer" }) keymap.set("n", "<A-x>", "<cmd>bdelete<CR>", { desc = "Delete current buffer" })
keymap.set("n", "<leader>tA", "<cmd>GoTestAdd<CR>", { desc = "Add Go Test for current function" })
keymap.set("n", "<leader>gr", "<cmd>lua vim.lsp.buf.rename()<CR>", keymap.set("n", "<leader>gr", "<cmd>lua vim.lsp.buf.rename()<CR>",
{ desc = "Renames all references to the symbol under the cursor" }) { desc = "Renames all references to the symbol under the cursor" })