goctl is a manager tool for micro framework go-zero
- packer.nvim
use({ "BYT0723/goctl.nvim", run = ":GoctlUpgrade", requires = {"MunifTanjim/nui.nvim"} })
-- recommend
use("rcarriga/nvim-notify")
require("goctl").setup()
- Validate
goctl valid when vim event "BufRead", "TextChanged", "TextChangedI".
- Format
use command GoctlApiFormat
or lua
-- format when write file
vim.api.nvim_command("au BufWritePre *.api lua require('goctl.api').format()")
- ApiMenu
use command
GoctlApi
or lua
require("goctl.api").menu()
plugin is being developed. We look forward to your participation and suggestions