Oxc extension for coc.nvim
:CocInstall coc-oxc
- oxlint: Fast linter with auto-fix support
- oxfmt: Fast formatter with format-on-save support
Note: This plugin only uses oxlint and oxfmt installed in the respective project; it does not activate globally.
oxc.oxlint.enable: Enable oxlint language server (default:true)oxc.oxlint.run: Run the linter on saveonSaveor on typeonType(default:onType)oxc.oxlint.configPath: Path to oxlint configuration (default:null, searches for.oxlintrc.json)oxc.oxlint.binPath: Path to theoxlintbinary (default: searches innode_modules/.bin)
oxc.oxfmt.enable: Enable oxfmt formatting (default:true)oxc.oxfmt.binPath: Path to theoxfmtbinary (default: searches innode_modules/.bin)
To enable format on save, add this to your coc-config (:CocConfig):
{
"oxc.oxfmt.enable": true,
"javascript.format.enable": false,
"typescript.format.enable": false,
"biome.format.enable": false,
"prettier.enable": false
}This disables ts language server (via coc-tsserver), Biome and prettier formatting.
You can also format manually with :call CocAction('format')
oxlint.restartServer: Restart oxlint Serveroxlint.showOutputChannel: Show oxlint Output Channel
oxfmt.restartServer: Restart oxfmt Serveroxfmt.showOutputChannel: Show oxfmt Output Channel
MIT
This extension is built with create-coc-extension