hrsh7th / cmp-path

nvim-cmp source for path
MIT License
628 stars 60 forks source link

added option to change the base dir for relative paths #37

Closed schrc3b6 closed 2 years ago

schrc3b6 commented 2 years ago

Hi,

I'm using project.nvim and it changes the current working directory accordingly, for each project. However, the path completion ignores the current working directory and always uses the cwd of the current buffer for relative paths.

I noticed there is already an issue for this: #21

Since this is my first time writing lua, feedback would be highly appreciated.

Thanks for feedback and for the great project

hrsh7th commented 2 years ago

Perfect. LGTM.

hrsh7th commented 2 years ago

Fixes https://github.com/hrsh7th/cmp-path/issues/21