diff options
| author | Marek Vospel <73162071+marekvospel@users.noreply.github.com> | 2025-01-27 12:50:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-27 03:50:26 -0800 |
| commit | 8981192c7d8058391148e77ec731acfa4b0320fb (patch) | |
| tree | 5a825aece709f30a61e6a81c59cda2a2f81cb222 /lua | |
| parent | fix(astro,volar): correct 'typescript/lib' path for TypeScript LSP initializa... (diff) | |
| download | nvim-lspconfig-8981192c7d8058391148e77ec731acfa4b0320fb.tar nvim-lspconfig-8981192c7d8058391148e77ec731acfa4b0320fb.tar.gz nvim-lspconfig-8981192c7d8058391148e77ec731acfa4b0320fb.tar.bz2 nvim-lspconfig-8981192c7d8058391148e77ec731acfa4b0320fb.tar.lz nvim-lspconfig-8981192c7d8058391148e77ec731acfa4b0320fb.tar.xz nvim-lspconfig-8981192c7d8058391148e77ec731acfa4b0320fb.tar.zst nvim-lspconfig-8981192c7d8058391148e77ec731acfa4b0320fb.zip | |
feat: oxc-language-server #3586
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/configs/oxlint.lua | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lua/lspconfig/configs/oxlint.lua b/lua/lspconfig/configs/oxlint.lua new file mode 100644 index 00000000..4bfbd9fd --- /dev/null +++ b/lua/lspconfig/configs/oxlint.lua @@ -0,0 +1,30 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'oxc_language_server' }, + filetypes = { + 'astro', + 'javascript', + 'javascriptreact', + 'svelte', + 'typescript', + 'typescript.tsx', + 'typescriptreact', + 'vue', + }, + root_dir = util.root_pattern('.oxlintrc.json'), + single_file_support = false, + }, + docs = { + description = [[ +https://oxc.rs + +A collection of JavaScript tools written in Rust. + +```sh +npm install [-g] oxlint +``` +]], + }, +} |
