Skip to content

Generate stub for interface on a type

Notifications You must be signed in to change notification settings

hleft/goimpl.nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

output

Requirements

  • neovim >= 5.0
  • lsp configured corretlly
  • nvim-telescope/telescope.nvim
  • nvim-treesitter/nvim-treesitter
  • 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', '<leader>im', [[<cmd>lua require'telescope'.extensions.goimpl.goimpl{}<CR>]], {noremap=true, silent=true})

FAQ

  1. Missing some interfaces?

It's because the gopls search implementation. See this

About

Generate stub for interface on a type

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%