aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoob Zhang2023-08-13 07:17:56 +0000
committerGitHub2023-08-13 07:17:56 +0000
commitb0c270f8e6f11cf6501b21c2ce785822a6f76c7b (patch)
treebb789013b0518ccb1b72dd598da6ba9152e3adbb
parent2caca1c4e92d46a9b021deed5d50025a5f229325 (diff)
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 <rskaraya@gmail.com> --------- Co-authored-by: zetashift <rskaraya@gmail.com>
-rw-r--r--languages.toml5
1 files changed, 4 insertions, 1 deletions
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