Skip to content

Commit

Permalink
Add ltex-ls LSP server.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Sep 22, 2024
1 parent ae6b470 commit 436886d
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 37 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ lsp-bridge provides support for more than two language servers for many language
- `lsp-bridge-elixir-lsp-server`: Elixir language server, you can choose `elixirLS`(default), `lexical` or `nextls`
- `lsp-bridge-python-lsp-server`: Python language server, you can choose `basedpyright`, `pyright`, `jedi`, `python-ms`, `pylsp`, `ruff`, it's important to note that lsp-bridge-multi-lang-server-mode-list has a higher priority than lsp-bridge-single-lang-server-mode-list. If you only want to use a single server, please first remove the python-mode setting from lsp-bridge-multi-lang-server-mode-list.
- `lsp-bridge-php-lsp-server`: PHP language server, you can choose `intelephense` or `phpactor`
- `lsp-bridge-tex-lsp-server`: LaTeX language server, you can choose `texlab` or`digestif`
- `lsp-bridge-tex-lsp-server`: LaTeX language server, you can choose `texlab`, `digestif` or `ltex-ls`
- `lsp-bridge-csharp-lsp-server`: C# language server, you can choose `omnisharp-mono`, `omnisharp-dotnet` or `csharp-ls`, note that you need to give **execute permissions** to the OmniSharp file
- `lsp-bridge-python-multi-lsp-server`: Python multi-language servers, you can choose `basedpyright_ruff`, `pyright_ruff`, `jedi_ruff`, `python-ms_ruff`, `pylsp_ruff`
- `lsp-bridge-nix-lsp-server`: Nix language server, you can choose `rnix-lsp`, `nixd` or `nil`
Expand Down Expand Up @@ -403,6 +403,7 @@ If your language supports mixed multi-language servers, it is recommended to che
| Kotlin | [kotlin-language-server](https://github.com/fwcd/kotlin-language-server) | If you want Inlay Hints feature, you need build with source code to return Inlay Hint information |
| Latex | [digestif](https://github.com/astoff/digestif) | `lsp-bridge-tex-lsp-server` set to `digestif` |
| | [texlab](https://github.com/latex-lsp/texlab) | `lsp-bridge-tex-lsp-server` set to `texlab` |
| | [ltex-ls](https://github.com/valentjn/ltex-ls) | `lsp-bridge-tex-lsp-server` set to `ltex-ls` |
| LESS | [emmet-ls](https://github.com/aca/emmet-ls) | `npm install -g emmet-ls` |
| Lua | [sumneko](https://github.com/sumneko/lua-language-server) | Please ensure `bin` under sumneko installation is in your system PATH at first |
| | [lua-lsp](https://github.com/Alloyed/lua-lsp) | |
Expand Down
3 changes: 2 additions & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ lsp-bridge 针对许多语言都提供 2 个以上的语言服务器支持,
- `lsp-bridge-elixir-lsp-server`: Elixir 语言的服务器, 可以选择`elixirLS`,`lexical`或者`nextls`
- `lsp-bridge-python-lsp-server`: Python 语言的服务器, 可以选择 `basedpyright`, `pyright`, `jedi`, `python-ms`, `pylsp`, `ruff`, 需要注意的是, `lsp-bridge-multi-lang-server-mode-list` 的优先级高于 `lsp-bridge-single-lang-server-mode-list`, 如果你只想使用单服务器, 请先去掉 `lsp-bridge-multi-lang-server-mode-list` 中 python-mode 的设置
- `lsp-bridge-php-lsp-server`: PHP 语言的服务器, 可以选择`intelephense`或者`phpactor`
- `lsp-bridge-tex-lsp-server`: LaTeX 语言的服务器, 可以选择`texlab`或者`digestif`
- `lsp-bridge-tex-lsp-server`: LaTeX 语言的服务器, 可以选择`texlab`,`digestif`或者`ltex-ls`
- `lsp-bridge-csharp-lsp-server`: C#语言的服务器, 可以选择`omnisharp-mono`, `omnisharp-dotnet` 或者 `csharp-ls`, 注意你需要给 OmniSharp 文件**执行权限**才能正常工作
- `lsp-bridge-python-multi-lsp-server`: Python 多语言服务器, 可以选择 `basedpyright_ruff`, `pyright_ruff`, `jedi_ruff`, `python-ms_ruff`, `pylsp_ruff`
- `lsp-bridge-nix-lsp-server`: Nix 语言的服务器, 可以选择 `rnix-lsp`, `nixd` 或者 `nil`
Expand Down Expand Up @@ -398,6 +398,7 @@ lsp-bridge 针对许多语言都提供 2 个以上的语言服务器支持,
| Kotlin | [kotlin-language-server](https://github.com/fwcd/kotlin-language-server) | Inlay Hint 功能需要自己编译源码的版本才能返回 Inlay Hint 信息 |
| Latex | [digestif](https://github.com/astoff/digestif) | `lsp-bridge-tex-lsp-server` 设置成 `digestif` |
| | [texlab](https://github.com/latex-lsp/texlab) | `lsp-bridge-tex-lsp-server` 设置成 `texlab` |
| | [ltex-ls](https://github.com/valentjn/ltex-ls) | `lsp-bridge-tex-lsp-server` 设置成 `ltex-ls` |
| LESS | [emmet-ls](https://github.com/aca/emmet-ls) | `npm install -g emmet-ls` |
| Lua | [sumneko](https://github.com/sumneko/lua-language-server) | 请确保导出 sumneko 的 `bin` 目录到你系统的 PATH 路径 |
| | [lua-lsp](https://github.com/Alloyed/lua-lsp) | |
Expand Down
6 changes: 6 additions & 0 deletions langserver/ltex-ls.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "ltex-ls",
"languageId": "tex",
"command": ["ltex-ls"],
"settings": {}
}
2 changes: 1 addition & 1 deletion lsp-bridge.el
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ Possible choices are basedpyright_ruff, pyright_ruff, pyright-background-analysi
:type 'string)

(defcustom lsp-bridge-tex-lsp-server "texlab"
"Default LSP server for (la)tex, you can choose `texlab' or `digestif'."
"Default LSP server for (la)tex, you can choose `texlab', `digestif' or `ltex-ls'."
:type 'string)

(defcustom lsp-bridge-csharp-lsp-server "omnisharp-dotnet"
Expand Down
64 changes: 30 additions & 34 deletions todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,66 +6,62 @@ Below LSP server haven't supported, PR are welcome. ;)

3. **Cucumber (Gherkin)**: cucumber/language-server

4. **Snyk**: [github.com/snyk/snyk-ls](https://github.com/snyk/snyk-ls)
4. **Gauge**: [github.com/getgauge/gauge](https://github.com/getgauge/gauge)

5. **LanguageTool**: [github.com/valentjn/ltex-ls](https://github.com/valentjn/ltex-ls)
5. **Coq**: coq-lsp

6. **Gauge**: [github.com/getgauge/gauge](https://github.com/getgauge/gauge)
6. **Delphi**: Embarcadero (Proprietary - DelphiLSP)

7. **Coq**: coq-lsp
7. **BibTeX**: [github.com/oncomouse/citation-langserver](https://github.com/oncomouse/citation-langserver)

8. **Delphi**: Embarcadero (Proprietary - DelphiLSP)
8. **JSON-LD**: [github.com/ajuvercr/jsonld-lsp](https://github.com/ajuvercr/jsonld-lsp)

9. **BibTeX**: [github.com/oncomouse/citation-langserver](https://github.com/oncomouse/citation-langserver)
9. **Ballerina**: [github.com/ballerina-platform/ballerina-lang/tree/master/language-server](https://github.com/ballerina-platform/ballerina-lang/tree/master/language-server)

10. **JSON-LD**: [github.com/ajuvercr/jsonld-lsp](https://github.com/ajuvercr/jsonld-lsp)
10. **Langium**: [github.com/langium/langium](https://github.com/langium/langium)

11. **Ballerina**: [github.com/ballerina-platform/ballerina-lang/tree/master/language-server](https://github.com/ballerina-platform/ballerina-lang/tree/master/language-server)
11. **Odin**: [github.com/DanielGavin/ols](https://github.com/DanielGavin/ols)

12. **Langium**: [github.com/langium/langium](https://github.com/langium/langium)
12. **Xtext** (Any Language): [github.com/eclipse/xtext-core](https://github.com/eclipse/xtext-core)

13. **Odin**: [github.com/DanielGavin/ols](https://github.com/DanielGavin/ols)
13. **ActionScript3**: [github.com/BowlerHatLLC/vscode-nextgenas/tree/master/language-server](https://github.com/BowlerHatLLC/vscode-nextgenas/tree/master/language-server)

14. **Xtext** (Any Language): [github.com/eclipse/xtext-core](https://github.com/eclipse/xtext-core)
14. **Raku**: [github.com/bscan/RakuNavigator](https://github.com/bscan/RakuNavigator)

15. **ActionScript3**: [github.com/BowlerHatLLC/vscode-nextgenas/tree/master/language-server](https://github.com/BowlerHatLLC/vscode-nextgenas/tree/master/language-server)
15. **Flux**: [github.com/influxdata/flux-lsp](https://github.com/influxdata/flux-lsp)

16. **Raku**: [github.com/bscan/RakuNavigator](https://github.com/bscan/RakuNavigator)
16. **SPARQL**: [github.com/stardog-union/stardog-language-servers/tree/master/packages/sparql-language-server](https://github.com/stardog-union/stardog-language-servers/tree/master/packages/sparql-language-server)

17. **Flux**: [github.com/influxdata/flux-lsp](https://github.com/influxdata/flux-lsp)
17. **Turtle**: [github.com/stardog-union/stardog-language-servers/tree/master/packages/turtle-language-server](https://github.com/stardog-union/stardog-language-servers/tree/master/packages/turtle-language-server)

18. **SPARQL**: [github.com/stardog-union/stardog-language-servers/tree/master/packages/sparql-language-server](https://github.com/stardog-union/stardog-language-servers/tree/master/packages/sparql-language-server)
18. **Common Workflow Language (CWL)**: Rabix/Benten

19. **Turtle**: [github.com/stardog-union/stardog-language-servers/tree/master/packages/turtle-language-server](https://github.com/stardog-union/stardog-language-servers/tree/master/packages/turtle-language-server)
19. **Smalltalk/Pharo**: [github.com/badetitou/Pharo-LanguageServer](https://github.com/badetitou/Pharo-LanguageServer)

20. **Common Workflow Language (CWL)**: Rabix/Benten
20. **DreamMaker**: [github.com/SpaceManiac/SpacemanDMM/tree/master/crates/dm-langserver](https://github.com/SpaceManiac/SpacemanDMM/tree/master/crates/dm-langserver)

21. **Smalltalk/Pharo**: [github.com/badetitou/Pharo-LanguageServer](https://github.com/badetitou/Pharo-LanguageServer)
21. **Grain**: [github.com/grain-lang/grain](https://github.com/grain-lang/grain)

22. **DreamMaker**: [github.com/SpaceManiac/SpacemanDMM/tree/master/crates/dm-langserver](https://github.com/SpaceManiac/SpacemanDMM/tree/master/crates/dm-langserver)
22. **V**: [github.com/vlang/v-analyzer](https://github.com/vlang/v-analyzer)

23. **Grain**: [github.com/grain-lang/grain](https://github.com/grain-lang/grain)
23. **TTCN-3**: [github.com/nokia/ntt](https://github.com/nokia/ntt)

24. **V**: [github.com/vlang/v-analyzer](https://github.com/vlang/v-analyzer)
24. **Red**: [github.com/bitbegin/redlangserver](https://github.com/bitbegin/redlangserver)

25. **TTCN-3**: [github.com/nokia/ntt](https://github.com/nokia/ntt)
25. **Fennel**: [git.sr.ht/~xerool/fennel-ls](https://git.sr.ht/~xerool/fennel-ls)

26. **Red**: [github.com/bitbegin/redlangserver](https://github.com/bitbegin/redlangserver)
26. **Erg**: [github.com/erg-lang/erg/tree/main/crates/els](https://github.com/erg-lang/erg/tree/main/crates/els)

27. **Fennel**: [git.sr.ht/~xerool/fennel-ls](https://git.sr.ht/~xerool/fennel-ls)
27. **Fuzion**: [github.com/tokiwa-software/fuzion-lsp-server](https://github.com/tokiwa-software/fuzion-lsp-server)

28. **Erg**: [github.com/erg-lang/erg/tree/main/crates/els](https://github.com/erg-lang/erg/tree/main/crates/els)
28. **Imandra Protocol Language**: [github.com/AestheticIntegration/ipl-vscode](https://github.com/AestheticIntegration/ipl-vscode)

29. **Fuzion**: [github.com/tokiwa-software/fuzion-lsp-server](https://github.com/tokiwa-software/fuzion-lsp-server)
29. **MOCA**: [github.com/mrglassdanny/moca-language-server](https://github.com/mrglassdanny/moca-language-server)

30. **Imandra Protocol Language**: [github.com/AestheticIntegration/ipl-vscode](https://github.com/AestheticIntegration/ipl-vscode)
30. **openVALIDATION**: [github.com/openvalidation/ov-language-server](https://github.com/openvalidation/ov-language-server)

31. **MOCA**: [github.com/mrglassdanny/moca-language-server](https://github.com/mrglassdanny/moca-language-server)
31. **Veryl**: [github.com/dalance/veryl/tree/master/crates/languageserver](https://github.com/dalance/veryl/tree/master/crates/languageserver)

32. **openVALIDATION**: [github.com/openvalidation/ov-language-server](https://github.com/openvalidation/ov-language-server)
32. **Standard ML**: Millet

33. **Veryl**: [github.com/dalance/veryl/tree/master/crates/languageserver](https://github.com/dalance/veryl/tree/master/crates/languageserver)

34. **Standard ML**: Millet

35. **Systemtap**: Systemtap LSP
33. **Systemtap**: Systemtap LSP

0 comments on commit 436886d

Please sign in to comment.