-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Auto-import on Completion respecting the prefixed in tsconfig.json #434
Comments
I think it is a |
The latest typescript-language-server has preferences configuration https://github.com/typescript-language-server/typescript-language-server#initializationoptions (Sorry. I don't know how to realize your expectation with the configuration... |
OK, I will take a look since I'm new to LSP-things. |
No problem. Hm... I can't get the different behavior with changing |
@hrsh7th: may I ask you that is it possible to auto-import-on-completion this kind of line: |
At least, this feature request is out of scope of nvim-cmp. |
here is what I used: lspconfig.tsserver.setup {
init_options = {
preferences = {
importModuleSpecifierPreference = "non-relative",
},
},
} |
Yes, don't panic, I did read your words on reading/following the template or so. This is not a bug report, but a feature request. It just takes a little time to read since I will provide some images:
I'm using your plugin to Auto-Import on completion. It seems great but when I remove-then-auto-import-back to enjoy this feature...
So yep you got the point. The completion system doesn't respect the
tsconfig.json
:I think auto-import should be accurate to be useful. So many you might consider adding this feature.
Sincerely,
Ning.
2021/10/29
The text was updated successfully, but these errors were encountered: