plugins/lsp: add ocamllsp, the language server for OCaml (#1233)

This commit is contained in:
Nick Hu 2024-03-08 19:48:07 +00:00 committed by GitHub
parent cd32dcd50f
commit ba5a0b84e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 0 deletions

View file

@ -67,6 +67,7 @@ in {
"nil_ls" "nil_ls"
"nixd" "nixd"
"nushell" "nushell"
"ocamllsp"
"ols" "ols"
"omnisharp" "omnisharp"
"perlpls" "perlpls"

View file

@ -430,6 +430,11 @@ with lib; let
description = "Nushell language server"; description = "Nushell language server";
cmd = cfg: ["${cfg.package}/bin/nu" "--lsp"]; cmd = cfg: ["${cfg.package}/bin/nu" "--lsp"];
} }
{
name = "ocamllsp";
description = "ocamllsp for OCaml";
package = pkgs.ocamlPackages.ocaml-lsp;
}
{ {
name = "ols"; name = "ols";
description = "ols for the Odin programming language"; description = "ols for the Odin programming language";

View file

@ -125,6 +125,7 @@
nil_ls.enable = true; nil_ls.enable = true;
nixd.enable = true; nixd.enable = true;
nushell.enable = true; nushell.enable = true;
ocamllsp.enable = true;
ols.enable = ols.enable =
# ols is not supported on aarch64-linux # ols is not supported on aarch64-linux
(pkgs.stdenv.hostPlatform.system != "aarch64-linux") (pkgs.stdenv.hostPlatform.system != "aarch64-linux")