tpope / vim-rails

rails.vim: Ruby on Rails power tools
http://www.vim.org/scripts/script.php?script_id=1567
4.1k stars 383 forks source link

Extend 'path' through custom projections #548

Closed toupeira closed 5 years ago

toupeira commented 5 years ago

I have some custom projections in a .projections.json file and would like to support the gf command for them as well. Currently I get an error E345: Cannot find file "..." in path, but after doing set path+=... it works as expected.

Is there a way to extend path through the custom projections, or could you maybe add the dirname() of all keys automatically?

tpope commented 5 years ago
{
  "*.rb": {"path": ["lib"]}
}
toupeira commented 5 years ago

Thanks! Should have checked the docs for vim-projectionist as well... :see_no_evil: