mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
add biome
This commit is contained in:
@@ -83,6 +83,7 @@ You can change the directory to install servers by set `g:lsp_settings_servers_d
|
||||
| ----------------- | ----------------------------------- | :-------: | :-----------: |
|
||||
| Apex/VisualForce | apex-jorje-lsp | Yes | Yes |
|
||||
| Astro | astro-ls | Yes | Yes |
|
||||
| Astro | biome | Yes | Yes |
|
||||
| Bash | bash-language-server | Yes | Yes |
|
||||
| C# | omnisharp | Yes | Yes |
|
||||
| C/C++ | clangd | Yes | Yes |
|
||||
@@ -116,6 +117,7 @@ You can change the directory to install servers by set `g:lsp_settings_servers_d
|
||||
| Hy | hyuga | Yes | No |
|
||||
| JSON | json-languageserver | Yes | Yes |
|
||||
| JSON | rome | Yes | Yes |
|
||||
| JSON | biome | Yes | Yes |
|
||||
| Jsonnet | jsonnet-language-server | Yes | Yes |
|
||||
| Java | eclipse-jdt-ls | Yes | Yes |
|
||||
| Java | java-language-server | No | Yes |
|
||||
@@ -124,6 +126,7 @@ You can change the directory to install servers by set `g:lsp_settings_servers_d
|
||||
| JavaScript | rome | Yes | Yes |
|
||||
| JavaScript | flow | Yes | Yes |
|
||||
| JavaScript | eslint-language-server | Yes | Yes |
|
||||
| JavaScript | biome | Yes | Yes |
|
||||
| Julia | LanguageServer.jl | Yes | No |
|
||||
| Kotlin | kotlin-language-server | Yes | Yes |
|
||||
| Lisp | cl-lsp | Yes | No |
|
||||
@@ -167,6 +170,7 @@ You can change the directory to install servers by set `g:lsp_settings_servers_d
|
||||
| Scala | Metals | Yes | Yes |
|
||||
| Svelte | svelte-language-server | Yes | Yes |
|
||||
| Svelte | tailwindcss-intellisense | Yes | Yes |
|
||||
| Svelte | biome | Yes | Yes |
|
||||
| Swift | sourcekit-lsp | Yes | No |
|
||||
| SystemVerilog | verible-verilog-ls | UNIX Only | Yes |
|
||||
| SystemVerilog | svls | Yes | Yes |
|
||||
@@ -180,6 +184,7 @@ You can change the directory to install servers by set `g:lsp_settings_servers_d
|
||||
| TypeScript | deno | Yes | Yes |
|
||||
| TypeScript | rome | Yes | Yes |
|
||||
| TypeScript | eslint-language-server | Yes | Yes |
|
||||
| TypeScript | biome | Yes | Yes |
|
||||
| Typst | typst-lsp | Yes | Yes |
|
||||
| Vim | vim-language-server | Yes | Yes |
|
||||
| Vala | vala-language-server | No | No |
|
||||
@@ -187,6 +192,7 @@ You can change the directory to install servers by set `g:lsp_settings_servers_d
|
||||
| Veryl | veryl-ls | Yes | Yes |
|
||||
| Vue | volar-server (Vue Language Tools) | Yes | Yes |
|
||||
| Vue | vls | Yes | Yes |
|
||||
| Vue | biome | Yes | Yes |
|
||||
| V | v-analyzer | Yes | Yes |
|
||||
| V | vlang-vls | Yes | Yes |
|
||||
| XML | lemminx | Yes | Yes |
|
||||
|
||||
5
installer/install-biome.cmd
Normal file
5
installer/install-biome.cmd
Normal file
@@ -0,0 +1,5 @@
|
||||
@echo off
|
||||
|
||||
setlocal
|
||||
curl -L -o biome-win32-x64.exe "https://github.com/biomejs/biome/releases/latest/download/biome-win32-x64.exe"
|
||||
move biome-win32-x64.exe biome.exe
|
||||
44
installer/install-biome.sh
Normal file
44
installer/install-biome.sh
Normal file
@@ -0,0 +1,44 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
os=$(uname -s | tr "[:upper:]" "[:lower:]")
|
||||
|
||||
arch=$(uname -m)
|
||||
|
||||
case $os in
|
||||
linux)
|
||||
case $(uname -r) in
|
||||
*-musl)
|
||||
kernel=musl
|
||||
;;
|
||||
*)
|
||||
kernel=glibc
|
||||
;;
|
||||
esac
|
||||
if [ "$arch" = "x86_64" ]; then
|
||||
if [ "$kernel" = "musl" ]; then
|
||||
filename="biome-linux-x64-musl"
|
||||
else
|
||||
filename="biome-linux-x64"
|
||||
fi
|
||||
else
|
||||
if [ "$kernel" = "musl" ]; then
|
||||
filename="biome-linux-arm64-musl"
|
||||
else
|
||||
filename="biome-linux-arm64"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
darwin)
|
||||
if [ "$arch" = "x86_64" ]; then
|
||||
filename="biome-darwin-x64"
|
||||
else
|
||||
filename="biome-darwin-arm64"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
curl -L -o "$filename" "https://github.com/denoland/deno/releases/latest/download/$filename"
|
||||
mv "$filename" biome
|
||||
chmod +x biome
|
||||
@@ -54,6 +54,16 @@
|
||||
],
|
||||
"name": "wuelnerdotexe/vim-astro"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "biome",
|
||||
"url": "https://biomejs.dev",
|
||||
"description": "Toolchain of the Web.",
|
||||
"requires": [],
|
||||
"root_uri_patterns": [
|
||||
"biome.json",
|
||||
"biome.jsonc"
|
||||
]
|
||||
}
|
||||
],
|
||||
"c": [
|
||||
@@ -715,6 +725,16 @@
|
||||
"root_uri_patterns": [
|
||||
"package.json"
|
||||
]
|
||||
},
|
||||
{
|
||||
"command": "biome",
|
||||
"url": "https://biomejs.dev",
|
||||
"description": "Toolchain of the Web.",
|
||||
"requires": [],
|
||||
"root_uri_patterns": [
|
||||
"biome.json",
|
||||
"biome.jsonc"
|
||||
]
|
||||
}
|
||||
],
|
||||
"javascriptreact": [
|
||||
@@ -784,6 +804,16 @@
|
||||
"root_uri_patterns": [
|
||||
"package.json"
|
||||
]
|
||||
},
|
||||
{
|
||||
"command": "biome",
|
||||
"url": "https://biomejs.dev",
|
||||
"description": "Toolchain of the Web.",
|
||||
"requires": [],
|
||||
"root_uri_patterns": [
|
||||
"biome.json",
|
||||
"biome.jsonc"
|
||||
]
|
||||
}
|
||||
],
|
||||
"json": [
|
||||
@@ -816,6 +846,16 @@
|
||||
"requires": [
|
||||
"npm"
|
||||
]
|
||||
},
|
||||
{
|
||||
"command": "biome",
|
||||
"url": "https://biomejs.dev",
|
||||
"description": "Toolchain of the Web.",
|
||||
"requires": [],
|
||||
"root_uri_patterns": [
|
||||
"biome.json",
|
||||
"biome.jsonc"
|
||||
]
|
||||
}
|
||||
],
|
||||
"jsonc": [
|
||||
@@ -832,6 +872,16 @@
|
||||
],
|
||||
"name": "neoclide/jsonc.vim"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "biome",
|
||||
"url": "https://biomejs.dev",
|
||||
"description": "Toolchain of the Web.",
|
||||
"requires": [],
|
||||
"root_uri_patterns": [
|
||||
"biome.json",
|
||||
"biome.jsonc"
|
||||
]
|
||||
}
|
||||
],
|
||||
"jsonnet": [
|
||||
@@ -1534,6 +1584,16 @@
|
||||
"requires": [
|
||||
"npm"
|
||||
]
|
||||
},
|
||||
{
|
||||
"command": "biome",
|
||||
"url": "https://biomejs.dev",
|
||||
"description": "Toolchain of the Web.",
|
||||
"requires": [],
|
||||
"root_uri_patterns": [
|
||||
"biome.json",
|
||||
"biome.jsonc"
|
||||
]
|
||||
}
|
||||
],
|
||||
"swift": [
|
||||
@@ -1692,6 +1752,16 @@
|
||||
"root_uri_patterns": [
|
||||
"package.json"
|
||||
]
|
||||
},
|
||||
{
|
||||
"command": "biome",
|
||||
"url": "https://biomejs.dev",
|
||||
"description": "Toolchain of the Web.",
|
||||
"requires": [],
|
||||
"root_uri_patterns": [
|
||||
"biome.json",
|
||||
"biome.jsonc"
|
||||
]
|
||||
}
|
||||
],
|
||||
"typescriptreact": [
|
||||
@@ -1743,6 +1813,16 @@
|
||||
"root_uri_patterns": [
|
||||
"package.json"
|
||||
]
|
||||
},
|
||||
{
|
||||
"command": "biome",
|
||||
"url": "https://biomejs.dev",
|
||||
"description": "Toolchain of the Web.",
|
||||
"requires": [],
|
||||
"root_uri_patterns": [
|
||||
"biome.json",
|
||||
"biome.jsonc"
|
||||
]
|
||||
}
|
||||
],
|
||||
"typ": [
|
||||
@@ -1893,6 +1973,16 @@
|
||||
],
|
||||
"name": "posva/vim-vue"
|
||||
}
|
||||
},
|
||||
{
|
||||
"command": "biome",
|
||||
"url": "https://biomejs.dev",
|
||||
"description": "Toolchain of the Web.",
|
||||
"requires": [],
|
||||
"root_uri_patterns": [
|
||||
"biome.json",
|
||||
"biome.jsonc"
|
||||
]
|
||||
}
|
||||
],
|
||||
"xml": [
|
||||
|
||||
14
settings/biome.vim
Normal file
14
settings/biome.vim
Normal file
@@ -0,0 +1,14 @@
|
||||
augroup vim_lsp_settings_biome
|
||||
au!
|
||||
LspRegisterServer {
|
||||
\ 'name': 'biome',
|
||||
\ 'cmd': {server_info->lsp_settings#get('biome', 'cmd', [lsp_settings#exec_path('biome')]+lsp_settings#get('biome', 'args', ['lsp-proxy']))},
|
||||
\ 'root_uri':{server_info->lsp_settings#get('biome', 'root_uri', lsp_settings#root_uri('biome'))},
|
||||
\ 'initialization_options': lsp_settings#get('biome', 'initialization_options', {}),
|
||||
\ 'allowlist': lsp_settings#get('biome', 'allowlist', ['typescript', 'javascript', 'typescriptreact', 'javascriptreact', 'json', 'jsonc']),
|
||||
\ 'blocklist': lsp_settings#get('biome', 'blocklist', []),
|
||||
\ 'config': lsp_settings#get('biome', 'config', {}),
|
||||
\ 'workspace_config': lsp_settings#get('biome', 'workspace_config', {}),
|
||||
\ 'semantic_highlight': lsp_settings#get('biome', 'semantic_highlight', {}),
|
||||
\ }
|
||||
augroup END
|
||||
Reference in New Issue
Block a user