nvim-coverage icon indicating copy to clipboard operation
nvim-coverage copied to clipboard

feat: support nested go modules (monorepo)

Open troyanov opened this issue 10 months ago • 0 comments

In case of a monorepo project (e.g. Python + Go) go.mod might be located somewhere in nested directories, but not in the project root.

Usage of Path:new('.') won't work well in that case, because it is actually a current working directory (cwd).

Change to Path:new(vim.fn.expand("%:p")) adds nested modules support, since go.mod search will be started from the location of the current file (opened in the buffer)

https://neovim.io/doc/user/builtin.html

% current file name :p expand to full path

troyanov avatar Mar 30 '24 23:03 troyanov