ecosse3 / nvim

A non-minimal Neovim config built to work most efficiently with Frontend Development
GNU General Public License v3.0
1.22k stars 107 forks source link

typescript (tsx) format indentation not working #62

Closed marcelothomaz closed 2 years ago

marcelothomaz commented 2 years ago

Hi,

Not sure this is related to nvim builds: NVIM v0.8.0-dev+452-gb2ed439bd Build type: Release LuaJIT 2.1.0-beta3

cf nor vim.lsp.buf.format* works. Only `ggVG` then `=` indents the file. I have done nothing different or any customization
ecosse3 commented 2 years ago

Should be fixed on dev branch for now. In neovim 0.8 recently API has changed and modifying a server's capabilities is not necessary thanks to the vim.lsp.buf.format API. By that I have enabled both eslint & tsserver formatting and they shouldn't not conflict with each other.

I didn't notice that doesn't work because I mostly use eslint for formatting which didn't break 😊 Thanks for the issue!

marcelothomaz commented 2 years ago

Should be fixed on dev branch for now. In neovim 0.8 recently API has changed and modifying a server's capabilities is not necessary thanks to the vim.lsp.buf.format API. By that I have enabled both eslint & tsserver formatting and they shouldn't not conflict with each other.

I didn't notice that doesn't work because I mostly use eslint for formatting which didn't break 😊 Thanks for the issue!

More than glad to help! I tried my best to place a PR but I'm still lacking full understanding of lua/nvim

ecosse3 commented 2 years ago

Thanks, fix is not available in the master branch. Closing issue.