Skip to content

Commit 8981192

Browse files
authored
feat: oxc-language-server #3586
1 parent e5bf88e commit 8981192

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

lua/lspconfig/configs/oxlint.lua

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
local util = require 'lspconfig.util'
2+
3+
return {
4+
default_config = {
5+
cmd = { 'oxc_language_server' },
6+
filetypes = {
7+
'astro',
8+
'javascript',
9+
'javascriptreact',
10+
'svelte',
11+
'typescript',
12+
'typescript.tsx',
13+
'typescriptreact',
14+
'vue',
15+
},
16+
root_dir = util.root_pattern('.oxlintrc.json'),
17+
single_file_support = false,
18+
},
19+
docs = {
20+
description = [[
21+
https://oxc.rs
22+
23+
A collection of JavaScript tools written in Rust.
24+
25+
```sh
26+
npm install [-g] oxlint
27+
```
28+
]],
29+
},
30+
}

0 commit comments

Comments
 (0)