Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 1.22 KB

README.md

File metadata and controls

72 lines (50 loc) · 1.22 KB

Goctl plugin for Neovim

goctl is a manager tool for micro framework go-zero

Install

  • packer.nvim
use({ "BYT0723/goctl.nvim", run = ":GoctlUpgrade", requires = {"MunifTanjim/nui.nvim"} })

-- recommend
use("rcarriga/nvim-notify")

Init

require("goctl").setup()

Features

  • 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()

Preview

Code Diagnostic
Api Format
Api
ApiNew
ApiGenerate

Other

plugin is being developed. We look forward to your participation and suggestions