feat: add ray-x/go.nvim

Plugin with utility functions like auto tag, auto import, etc
This commit is contained in:
Simon Lasbrugnas 2024-12-06 23:02:23 +01:00
parent d379339823
commit 4a3419e02e
Signed by untrusted user who does not match committer: simon
GPG key ID: 86039876BA6ED8DE

10
lua/custom/plugins/go.lua Normal file
View file

@ -0,0 +1,10 @@
return {
"ray-x/go.nvim",
event = "VeryLazy",
opts = {},
keys = {
{ "<leader>goa", "<cmd>GoAddTag<CR>", desc = "Add struct tags"},
{ "<leader>gor", "<cmd>GoRmTag<CR>", desc = "Remove struct tags"},
{ "<leader>got", "<cmd>GoAddAllTest<CR>", desc = "Add all tests"},
},
}