Skip to content

BYT0723/goctl.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

go-zero dev plugin for Neovim, based on goctl

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published