Path mapping between host and remote environment possible?
chriscz opened this issue · 0 comments
I have an odd setup in a few of my rails projects. Certain commands like rails
, bundle
, rubocop
etc have thin wrappers that execute them inside of an active docker image instead of directly on the host.
I want to run solargraph
within the docker image too and even though communication works fine over solargraph stdio
, I am experiencing a problem where files aren't found because the path to the files inside of the docker image are different from outside.
I could rectify this with a symlink inside of the docker, but I was wondering whether there is any facility to do remapping at the level of solargraph
?
So for example outside of docker
/home/user/projects/system/app/models/booking.rb
And within docker
/app/app/models/booking.rb
I use neovim
with it's LSP implementation, but I didn't find any documentation on mapping file paths.