Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edolphin-ydf/goimpl.nvim
Generate stub for interface on a type
https://github.com/edolphin-ydf/goimpl.nvim
Last synced: about 1 month ago
JSON representation
Generate stub for interface on a type
- Host: GitHub
- URL: https://github.com/edolphin-ydf/goimpl.nvim
- Owner: edolphin-ydf
- Created: 2021-08-12T15:36:02.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-11T11:49:26.000Z (11 months ago)
- Last Synced: 2024-01-24T08:51:57.961Z (4 months ago)
- Language: Lua
- Size: 15.6 KB
- Stars: 43
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- awesome-neovim - edolphin-ydf/goimpl.nvim - Generate interface stubs for a type. (Programming Languages Support / Golang)
- awesome-neovim - edolphin-ydf/goimpl.nvim - Generate interface stubs for a type. (Programming Languages Support / Golang)
- awesome-neovim - edolphin-ydf/goimpl.nvim - Generate interface stubs for a type. (Programming Languages Support / Golang)
README
![output](https://user-images.githubusercontent.com/4330411/129226108-d23caace-51d4-4261-99b0-ef6deec51ae3.gif)
# Requirements
* neovim >= 5.0
* lsp configured corretlly
* nvim-telescope/telescope.nvim
* nvim-treesitter/nvim-treesitter
* [josharian/impl](https://github.com/josharian/impl)# Install
with packer
```
use {
'edolphin-ydf/goimpl.nvim',
requires = {
{'nvim-lua/plenary.nvim'},
{'nvim-lua/popup.nvim'},
{'nvim-telescope/telescope.nvim'},
{'nvim-treesitter/nvim-treesitter'},
},
config = function()
require'telescope'.load_extension'goimpl'
end,
}
```# Setting
add the key mapping in your init.lua
```
vim.api.nvim_set_keymap('n', 'im', [[lua require'telescope'.extensions.goimpl.goimpl{}]], {noremap=true, silent=true})
```# FAQ
1. Missing some interfaces?
It's because the gopls search implementation. See [this](https://github.com/edolphin-ydf/goimpl.nvim/issues/5#issuecomment-1175712329)