Skip to content

A simple plugin that enables goto-definition navigation on proto message types from Go files and back

Notifications You must be signed in to change notification settings

delabere/protodef

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

PROTODEF

protodef is a simple plugin that enables you to goto-definition on proto message types from Go files and back

If you have your cursor on a proto message type in a handler function, it takes you to the message type definition in the *.proto file

If you have your cursor on a proto message type definition in a *.proto file, it takes you to the handler function which uses that message in a *.go file

It will only search for proto files in the proto/ directory of your project, and go files in the handler/ directory

SETUP

Install ripgrep if you don't have it: brew install ripgrep

Install this plugin: Plug 'delabere/protodef'

Use it: :Protodef

Optionally you can map protodef to a keybind like so: nmap gp :Protodef<CR>

USAGE

Put your cursor on a proto message type and use :protodef or your mapping. Simple as that!

About

A simple plugin that enables goto-definition navigation on proto message types from Go files and back

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages