I am working on several projects with neovim with TypeScript LSP installed.
In some projects, the auto import correctly set the path using relative paths.
However, some projects always starts its import at src
for some reason.
Tried to configure LSP to always use relative path but can't make it work.
Somehow, there is something in my project configuration that broke the LSP import.
Compared the tsconfig.json
for two projects and found out that one of them has no "baseUrl" and the other has "baseUrl" set to "./".
I just removed "baseUrl" from the tsconfig compiler options and neovim is happily resolving the correct relative paths.