Is there an option for ALEImport to use relative paths instead of starting from project root? #4364
Unanswered
ryabrody
asked this question in
Q&A - Ask for help with problems
Replies: 2 comments 5 replies
-
ALE simply imports whatever the underlying LSP returns. If the LSP has such configuration then it should be set on the LSP. Also ALE always selects the first import returned by LSP even if it returns multiple options. There is an issue to address this but I do not see it solved any time soon: #4085 |
Beta Was this translation helpful? Give feedback.
5 replies
-
For typescript/tsserver, I now was able to switch to relative import paths by removing the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ale provides the command
:ALEImport
which tries to find an import for the symbol at the cursor and inserts the first one it finds. The import is inserted to the top of the file. The import path starts at the root directory of the application. Example:I would like to configure that the path to the module file is relative from the current file and also that single quotes instead of double quotes are used:
I searched the documentation if its possible to add some configurations to
:ALEImport
command but i did not found anything regarding this. I would like to avoid installing another plugin but it seems not to be supported by ale itself.Beta Was this translation helpful? Give feedback.
All reactions