{"repo":"olexsmir/gopher.nvim","free":true,"listed":false,"github":"https://github.com/olexsmir/gopher.nvim","clone":"git clone https://github.com/olexsmir/gopher.nvim.git","description":"Minimalistic plugin for Go development","language":"Lua","stars":434,"topics":["go","neovim","neovim-plugin","nvim","golang"],"license":"MIT","category":"dev-tools","readme_excerpt":"gopher.nvim Minimalistic plugin for Go development in Neovim written in Lua. It's NOT an LSP tool, the goal of this plugin is to add go tooling support in Neovim. All development of new and maybe undocumented, and unstable features is happening on develop branch. Table of content How to install Features Configuration Troubleshooting Contributing Install (using lazy.nvim) Requirements: - Neovim 0.10 or later - Treesitter parser for go ( :TSInstall go if you use nvim-treesitter) - Go installed [!IMPORTANT] If you prefer using other forges, this repository is also mirrored at: - tangled.org: https://tangled.org/olexsmir.xyz/gopher.nvim - codeberg.org: https://codeberg.org/olexsmir/gopher.nvim Features Install plugin's go deps This will install the following tools: - gomodifytags - impl - gotests - iferr - json2go Add and remove tags for structs via gomodifytags By default json tag will be added/removed, if not set: Generating tests via gotests For named tests see :h gopher.nvim-gotests-named Run commands like go mod/get/etc inside of nvim Interface implementation via impl Syntax of the command: Usage examples: Generate boilerplate for doc comments First set a cursor on public package/function/interface/struct and execute: Convert json to Go types :GoJson opens a temporary buffer where you can paste or write JSON. Saving the buffer ( :w or :wq ) automatically closes it and inserts the generated Go struct into the original buffer at the cursor position. Alternatively, you can pass","default_branch":null,"files":null,"tree":[],"storefront":"/r/olexsmir","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/olexsmir/gopher.nvim/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}