goimpl.nvim icon indicating copy to clipboard operation
goimpl.nvim copied to clipboard

Add support for Monorepos

Open theoribeiro opened this issue 10 months ago • 0 comments

When using your plugin in our monorepo I noticed that impl couldn't find any go packages as it is being run from the root of the repository, which is not the go project I was trying to find the interface for.

A very simple and naive implementation solves it by changing the directory to dirname before running impl. I'm not sure this would break other use cases but in my tests with both mono and multi repos it was working just fine.

Don't know if you'd have a better solution for this but decided to open a PR to start the discussion. Happy to make adjustments if you think it's needed.

theoribeiro avatar Apr 11 '24 19:04 theoribeiro