neoclide / coc-tsserver

Tsserver extension for coc.nvim that provide rich features like VSCode for javascript & typescript
MIT License
1.06k stars 68 forks source link

Formatting based on project's eslint/biome #460

Closed englut closed 6 months ago

englut commented 6 months ago

Maybe I've my coc-tsserver setup incorrectly, but it seems like when I run :Format, the formatting used doesn't respect my projects eslint or biome. Is there a way to specify or a priority list of what formatter to use?

fannheyward commented 6 months ago

coc-server doesn't run biome to do formatting. Try coc-eslint/coc-biome.

englut commented 6 months ago

I want to keep using :Format so that it's project specific. Does typescript.format.enable disable just coc-tsserver from being a formatter (defaulting to others that are enabled)? Or does it disable typescript and related filetypes from being affected by :Format altogether?

englut commented 6 months ago

Ah. I see the issue now. It's not coc-tsserver. My bad. coc-prettier only supports an outdated prettier version, and doesn't like prettier.config.mjs. Sorry for false alarm!

https://github.com/neoclide/coc-prettier/pull/172