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

Use `exclude_dirs` to exclude directories from root directories instead not launching the calculation

Open tissieres opened this issue 3 years ago • 2 comments

Hello,

In my opinion, the check is_excluded for directories in exclude_dirs config option would make more sense if it was done before the set_pwd function below. In my case, the lsp returns unwanted roots that I wanted to exclude but the exclude_dirs does not permit it. https://github.com/ahmedkhalf/project.nvim/blob/71d0e23dcfc43cfd6bb2a97dc5a7de1ab47a6538/lua/project_nvim/project.lua#L240

What do you think?

tissieres avatar Jan 13 '22 10:01 tissieres

I may have a similar problem. I work in a project folder and open a note from ~/notes folder (with special telescope function). The working directory is changed even though in my config I have:

  exclude_dirs = { "~/notes/*" },

punk-dev-robot avatar Mar 20 '22 14:03 punk-dev-robot

I may have a similar problem. I work in a project folder and open a note from ~/notes folder (with special telescope function). The working directory is changed even though in my config I have:

  exclude_dirs = { "~/notes/*" },

I am having the exact same issue 😞

breneser avatar Oct 25 '22 17:10 breneser