CosmicNvim / CosmicNvim

CosmicNvim is a lightweight and opinionated Neovim config for web development, specifically designed to provide a 💫 COSMIC programming experience!

Home Page:https://cosmicnvim.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wrong indentation with import actions

andersonba opened this issue · comments

First, great job! I'm really excited about this project. Thank you!
Second, I don't know where to report this issue, if it's something specific to the LSP provider or not... anyway :)

Every time I run the "organize imports", "import current" or "import all", it ends up generating inconsistency with the indention.
I have configured the tab size to 2 (tabstop, shiftwidth, softtabstop...) but the commands do not respect it. Thereafter, when I save the file, the auto-format fix all.

See:

Kapture.2021-12-07.at.03.14.46.mp4

Would you have any idea what it could be or where I should look? Thanks!

Hmm.. after a little bit of digging in nvim-lsp-ts-utils (the plugin that enables that functionality). I'm not exactly sure what can be done on Cosmic's side since all it does is make a simple request to tsserver.

I'd suggest raising this issue there and seeing if there is a workaround/fix I'm not finding.

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

we'll probably have to wait for something on the tsserver side
thanks @mattleong