wrong indentation with import commands #95
-
Hi! I have an issue with indention + auto-import or organize imports commands. I'm using CosmicNvim config, which uses this plugin. The author suggested I check this side.
More details CosmicNvim/CosmicNvim#32
Kapture.2021-12-07.at.03.14.46.mp4 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I'm not sure that we can do anything about this, since |
Beta Was this translation helpful? Give feedback.
-
I got it 😞 thanks for the explanation! Out of curiosity, do you know the reason for the 4-space indentation and not the 2-space? is it hard-coded? I ask because it doesn't happen with "Organize Imports" in VSCode, even though now I know that it really ignores the formatting, the trailing commas don't work as expected while the indentation works properly. Kapture.2021-12-09.at.15.22.32.mp4Does what I said make sense or does VSCode work differently from vim <> tsserver? |
Beta Was this translation helpful? Give feedback.
I'm not sure that we can do anything about this, since
OrganizeImportsRequestArgs
fromtsserver
doesn't accept any options related to indentation / formatting. microsoft/TypeScript#22991 contains more details, but this is something that would have to be supported upstream.