jose-elias-alvarez / nvim-lsp-ts-utils

Utilities to improve the TypeScript development experience for Neovim's built-in LSP client.
The Unlicense
438 stars 18 forks source link

Is this plugin the only way to import components with relative path, e.g. `./Components/AnotherComp`? #106

Closed nyngwang closed 2 years ago

nyngwang commented 2 years ago

As title. I currently using nvim-cmp and I found that the auto-import on confirm doesn't detect files under the same folder.

jose-elias-alvarez commented 2 years ago

This behavior is fundamentally controlled by typescript-language-server, so I can't say for sure. You can see here what we are doing to resolve imports. I'm not sure what nvim-cmp is doing, but it should be pretty similar, so I'm surprised there's a difference in behavior.

nyngwang commented 2 years ago

Many thanks for your help with the confirmation! OK, but since I'm relatively new to language-server so I don't know what to do now... I'm trying to use one plugin to resolve this problem.

jose-elias-alvarez commented 2 years ago

Closing this issue as it's more of a question and not something we can act on.