settings.json 3.72 KB
Newer Older
1 2
{
    "servers": {
Daniele Scasciafratte's avatar
Daniele Scasciafratte committed
3
        "bash": {
4
            "command": ["bash-language-server", "start"],
Daniele Scasciafratte's avatar
Daniele Scasciafratte committed
5 6
            "url": "https://github.com/bash-lsp/bash-language-server",
            "highlightingModeRegex": "^Bash$"
Daniele Scasciafratte's avatar
Daniele Scasciafratte committed
7
        },
8
        "bibtex": {
9 10
            "use": "latex",
            "highlightingModeRegex": "^BibTeX$"
11
        },
12 13
        "c": {
            "command": ["clangd", "-log=error", "--background-index"],
14
            "commandDebug": ["clangd", "-log=verbose", "--background-index"],
15 16
            "url": "https://clang.llvm.org/extra/clangd/",
            "highlightingModeRegex": "^(C|ANSI C89|Objective-C)$"
17 18
        },
        "cpp": {
19 20
            "use": "c",
            "highlightingModeRegex": "^(C\\+\\+|ISO C\\+\\+|Objective-C\\+\\+)$"
21
        },
Christoph Cullmann's avatar
Christoph Cullmann committed
22
        "d": {
Ernesto Castellotti's avatar
Ernesto Castellotti committed
23
            "command": ["serve-d"],
24
            "rootIndicationFileNames": ["dub.json"],
Ernesto Castellotti's avatar
Ernesto Castellotti committed
25
            "url": "https://github.com/Pure-D/serve-d",
26
            "highlightingModeRegex": "^D$"
Christoph Cullmann's avatar
Christoph Cullmann committed
27
        },
28 29 30
        "fortran": {
            "command": ["fortls"],
            "rootIndicationFileNames": [".fortls"],
31 32
            "url": "https://github.com/hansec/fortran-language-server",
            "highlightingModeRegex": "^Fortran.*$"
33
        },
34
        "go": {
Marvin Ahlgrimm's avatar
Marvin Ahlgrimm committed
35 36 37 38
            "command": ["gopls"],
            "commandDebug": ["gopls", "-rpc.trace"],
            "rootIndicationFileNames": ["go.mod"],
            "url": "golang.org/x/tools/gopls",
39 40
            "highlightingModeRegex": "^Go$"
        },
41
        "haskell": {
42
            "command": ["haskell-language-server-wrapper", "--lsp"],
43
            "rootIndicationFileNames": ["*.cabal", "stack.yaml", "cabal.project", "package.yaml"],
44
            "url": "https://github.com/haskell/haskell-language-server",
45 46
            "highlightingModeRegex": "^Haskell$"
        },
47
        "javascript": {
48
            "command": ["typescript-language-server", "--stdio"],
49
            "rootIndicationFileNames": ["package.json", "package-lock.json"],
50 51 52
            "url": "https://github.com/theia-ide/typescript-language-server",
            "highlightingModeRegex": "^JavaScript.*$",
            "documentLanguageId": false
53
        },
54
        "latex": {
55
            "command": ["texlab"],
56 57
            "url": "https://texlab.netlify.com/",
            "highlightingModeRegex": "^LaTeX$"
58
        },
59 60 61 62
        "ocaml": {
            "command": ["ocamllsp"],
            "url": "https://github.com/ocaml/ocaml-lsp",
            "highlightingModeRegex": "^Objective Caml.*$"
63
        },
64 65 66 67 68 69
        "perl": {
            "command": ["perl", "-MPerl::LanguageServer", "-e", "Perl::LanguageServer::run", "--"],
            "commandDebug": ["perl", "-MPerl::LanguageServer", "-e", "Perl::LanguageServer::run", "--", "--debug"],
            "url": "https://github.com/richterger/Perl-LanguageServer",
            "highlightingModeRegex": "^Perl$"
        },
70
        "python": {
71
            "command": ["pyls", "--check-parent-process"],
72 73
            "url": "https://github.com/palantir/python-language-server",
            "highlightingModeRegex": "^Python$"
74 75
        },
        "rust": {
76
            "command": ["rls"],
77
            "rootIndicationFileNames": ["Cargo.lock", "Cargo.toml"],
78 79
            "url": "https://github.com/rust-lang/rls",
            "highlightingModeRegex": "^Rust$"
Christoph Cullmann's avatar
Christoph Cullmann committed
80
        },
81 82 83
        "typescript": {
            "use": "javascript",
            "highlightingModeRegex": "^TypeScript.*$"
84 85 86 87 88
        },
        "r": {
            "command": ["R", "--slave", "-e", "languageserver::run()"],
            "url": "https://github.com/REditorSupport/languageserver",
            "highlightingModeRegex": "^R Script$"
89 90 91 92 93
        },
        "zig": {
            "command": ["zls"],
            "url": "https://github.com/zigtools/zls",
            "highlightingModeRegex": "^Zig$"
94 95 96
        }
    }
}