Skip to content

Commit

Permalink
Add openscad-lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Nov 14, 2024
1 parent 7344d8e commit 41530f4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ If your language supports mixed multi-language servers, it is recommended to che
| | [ccls](https://github.com/MaskRay/ccls) | `lsp-bridge-c-lsp-server` set to `ccls`, you need to configure `compile_commands.json` first |
| Odin | [ols](https://github.com/DanielGavin/ols) | |
| Ocaml | [ocamllsp](https://github.com/ocaml/ocaml-lsp) | |
| OpenSCAD | [openscad-lsp](https://github.com/Leathong/openscad-LSP?tab=readme-ov-file) | `cargo install openscad-lsp` |
| Org-mode | [ds-pinyin](https://github.com/iamcco/ds-pinyin-lsp) | `cargo install ds-pinyin-lsp`, download `dict.db3` of `ds-pinyin`, and save to `~/.emacs.d/ds-pinyin/` directory, then turn on option `lsp-bridge-use-ds-pinyin-in-org-mode` |
| | [Wen](https://github.com/metaescape/Wen) | `pip install pygls pypinyin`, then turn on option `lsp-bridge-use-wenls-in-org-mode` |
| Perl | [perl-language-server](https://github.com/richterger/Perl-LanguageServer) | |
Expand Down
1 change: 1 addition & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ lsp-bridge 针对许多语言都提供 2 个以上的语言服务器支持,
| | [ccls](https://github.com/MaskRay/ccls) | `lsp-bridge-c-lsp-server` 设置成 `ccls`, 需要在项目根目录配置好 compile_commands.json |
| Odin | [ols](https://github.com/DanielGavin/ols) | |
| Ocaml | [ocamllsp](https://github.com/ocaml/ocaml-lsp) | |
| OpenSCAD | [openscad-lsp](https://github.com/Leathong/openscad-LSP?tab=readme-ov-file) | `cargo install openscad-lsp` |
| Org-mode | [ds-pinyin](https://github.com/iamcco/ds-pinyin-lsp) | `cargo install ds-pinyin-lsp`, 下载 ds-pinyin 的 dict.db3 文件, 并保存到目录 ~/.emacs.d/ds-pinyin/ , 最后开启选项 `lsp-bridge-use-ds-pinyin-in-org-mode` |
| | [Wen](https://github.com/metaescape/Wen) | `pip install pygls pypinyin`, 开启选项 `lsp-bridge-use-wenls-in-org-mode` |
| Perl | [perl-language-server](https://github.com/richterger/Perl-LanguageServer) | |
Expand Down
9 changes: 9 additions & 0 deletions langserver/openscad-lsp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "openscad-lsp",
"languageId": "openscad",
"command": [
"openscad-lsp",
"--stdio"
],
"settings": {}
}
3 changes: 3 additions & 0 deletions lsp-bridge.el
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ If nil, lsp-bridge would try to detect by default."
(solidity-mode . "solidity")
(gleam-ts-mode . "gleam")
(ada-mode . "ada-language-server")
(scad-mode . "openscad-lsp")
(sml-mode . "millet")
(fuzion-mode . "fuzion-language-server")
(fennel-mode . "fennel-ls")
Expand Down Expand Up @@ -724,6 +725,7 @@ If nil, lsp-bridge would try to detect by default."
solidity-mode-hook
gleam-ts-mode-hook
ada-mode-hook
scad-mode-hook
sml-mode-hook
fuzion-mode-hook
fennel-mode-hook
Expand Down Expand Up @@ -806,6 +808,7 @@ you can customize `lsp-bridge-get-workspace-folder' to return workspace folder p
(raku-mode . raku-indent-offset) ; Perl6/Raku
(erlang-mode . erlang-indent-level) ; Erlang
(ada-mode . ada-indent) ; Ada
(scad-mode . lsp-bridge-indent-two-level) ; OpenSCAD
(sml-mode . sml-indent-level) ; Standard ML
(fuzion-mode . lsp-bridge-indent-two-level) ; Fuzion
(fennel-mode . lsp-bridge-indent-two-level) ; Fennel
Expand Down

0 comments on commit 41530f4

Please sign in to comment.