From b0c270f8e6f11cf6501b21c2ce785822a6f76c7b Mon Sep 17 00:00:00 2001 From: Noob Zhang Date: Sun, 13 Aug 2023 15:17:56 +0800 Subject: Added some LSP servers and updated python's roots (#7897) * Add csharp-ls for possible c-sharp LSP See https://github.com/razzmatazz/csharp-language-server for more info about it. * Add pyright for possible python LSP It may be prefered than pylsp by someone. According to https://github.com/helix-editor/helix/issues/5479, I don't make it default for everyone. Just for people who need this. * Update roots of python Using some known filenames to detect correct project root. * Add pylyzer for possible python LSP Co-authored-by: zetashift --------- Co-authored-by: zetashift --- languages.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index defffa03..e85fcdb1 100644 --- a/languages.toml +++ b/languages.toml @@ -15,6 +15,7 @@ clojure-lsp = { command = "clojure-lsp" } cmake-language-server = { command = "cmake-language-server" } crystalline = { command = "crystalline", args = ["--stdio"] } cs = { command = "cs", args = ["launch", "--contrib", "smithy-language-server", "--", "0"] } +csharp-ls = { command = "csharp-ls" } cuelsp = { command = "cuelsp" } dart = { command = "dart", args = ["language-server", "--client-id=helix"] } dhall-lsp-server = { command = "dhall-lsp-server" } @@ -54,6 +55,8 @@ perlnavigator = { command = "perlnavigator", args= ["--stdio"] } prisma-language-server = { command = "prisma-language-server", args = ["--stdio"] } purescript-language-server = { command = "purescript-language-server", args = ["--stdio"] } pylsp = { command = "pylsp" } +pyright = { command = "pyright-langserver", args = ["--stdio"] } +pylyzer = { command = "pylyzer", args = ["--server"] } qmlls = { command = "qmlls" } r = { command = "R", args = ["--no-echo", "-e", "languageserver::run()"] } racket = { command = "racket", args = ["-l", "racket-langserver"] } @@ -654,7 +657,7 @@ scope = "source.python" injection-regex = "python" file-types = ["py","pyi","py3","pyw","ptl",".pythonstartup",".pythonrc","SConstruct"] shebangs = ["python"] -roots = [] +roots = ["pyproject.toml", "setup.py", "poetry.lock","pyrightconfig.json"] comment-token = "#" language-servers = [ "pylsp" ] # TODO: pyls needs utf-8 offsets -- cgit v1.2.3-70-g09d2