On a particular init.pp file, I have the following definition:
class temp_executor {
if $::fqdn =~ /host.*01/ {
include ::temp_executor::deploy
}
}
deploy.pp is on the same folder as init.pp.
I want to jump to that deploy.pp file, while highlighting ::temp_executor::deploy by pressing gf or gd or something similar.
Currently I have to look for the file by name, and while using fzf is quick, it's not as good as jumping.
I've installed the rails-vim plugin (https://vimawesome.com/plugin/rails-vim) but I don't know how to go about this particular movement.
Thanks in advance for the help!
EDIT:
To clarify, temp_executor is the name of the module in puppet, and deploy.pp is the name of the manifest on that module's folder.
So the structure is like this:
temp_executor
│
└───manifests
│ │ deploy.pp
│ │ init.pp
│
└───files
│ │ (...)
│
│
(...)
The expected behavior for me would be to highlight the word deploy the line include ::temp_executor::deploy and jump to the file deploy.pp
tagsand/orLSPmight be the way to go. – Biggybi Jul 29 '20 at 15:19