aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/configs/oxlint.lua30
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
+```
+]],
+ },
+}