Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add biome #738

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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 |
Expand All @@ -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 |
Expand Down Expand Up @@ -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 |
Expand All @@ -180,13 +184,15 @@ 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 |
| Verilog | verible-verilog-ls | UNIX Only | Yes |
| 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 |
Expand Down
5 changes: 5 additions & 0 deletions installer/install-biome.cmd
Original file line number Diff line number Diff line change
@@ -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 changes: 44 additions & 0 deletions installer/install-biome.sh
Original file line number Diff line number Diff line change
@@ -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
90 changes: 90 additions & 0 deletions settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand All @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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": [
Expand Down
14 changes: 14 additions & 0 deletions settings/biome.vim
Original file line number Diff line number Diff line change
@@ -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
Loading