Add "vibe-coded" go-helper utils
This commit is contained in:
15
lua/plugins/go-helper.lua
Normal file
15
lua/plugins/go-helper.lua
Normal file
@ -0,0 +1,15 @@
|
||||
return {
|
||||
{
|
||||
"go-helper",
|
||||
dir = vim.fn.stdpath("config") .. "/lua/scripts",
|
||||
ft = "go",
|
||||
keys = {
|
||||
{ "<leader>cei", "<cmd>GoExtractInterface<cr>", desc = "Extract Interface", ft = "go" },
|
||||
{ "<leader>cec", "<cmd>GoGenerateConstructor<cr>", desc = "Generate Constructor", ft = "go" },
|
||||
},
|
||||
config = function()
|
||||
require("scripts.go-extract-interface").setup()
|
||||
require("scripts.go-gen-constructor").setup()
|
||||
end,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user