coc-oxc
v0.1.0
Published
Oxc extension for coc.nvim
Readme
coc-oxc
Oxc extension for coc.nvim
Install
:CocInstall coc-oxc
Features
- oxlint: Fast linter with auto-fix support
- oxfmt: Fast formatter with format-on-save support
Configurations
Oxlint (Linter)
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)
Oxfmt (Formatter)
oxc.oxfmt.enable: Enable oxfmt formatting (default:true)oxc.oxfmt.binPath: Path to theoxfmtbinary (default: searches innode_modules/.bin)
Format on Save
To enable format on save, add this to your coc-config (:CocConfig):
{
"oxc.oxfmt.enable": true,
"coc.preferences.formatOnSaveFiletypes": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
]
}You can also format manually with :call CocAction('format')
Commands
Oxlint Commands
oxlint.restartServer: Restart oxlint Serveroxlint.showOutputChannel: Show oxlint Output Channel
Oxfmt Commands
oxfmt.restartServer: Restart oxfmt Serveroxfmt.showOutputChannel: Show oxfmt Output Channel
License
MIT
This extension is built with create-coc-extension
