I am facing this problem which on the face of it should be easy to solve but isn't.
this is my `.editorconf`:
root = true
[*]
indent_style = tab
tab_width = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
I am running doom emacs with ts-ls with LSP for javascript.
I have some files in my project that are indented with 4-width Tabs and that's how I like it. If I change something in them and save they stay properly indented with 4-width Tabs.
I have other files in the same project that are indented with 2 spaces. I don't want that. I want to be able to convert that to 4-width tab but that does not happen automatically on save, they stay in 2 space formatting.
Any new file I create in Emacs is also indented with 2 spaces, but if I create the file in VSCode and write some Tab spaced text and open it back in Emacs it stays Tab indented.
How can I fix this?