Skip to content

Commit ba5a0b8

Browse files
authored
plugins/lsp: add ocamllsp, the language server for OCaml (#1233)
1 parent cd32dcd commit ba5a0b8

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

plugins/lsp/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ in {
6767
"nil_ls"
6868
"nixd"
6969
"nushell"
70+
"ocamllsp"
7071
"ols"
7172
"omnisharp"
7273
"perlpls"

plugins/lsp/language-servers/default.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,11 @@ with lib; let
430430
description = "Nushell language server";
431431
cmd = cfg: ["${cfg.package}/bin/nu" "--lsp"];
432432
}
433+
{
434+
name = "ocamllsp";
435+
description = "ocamllsp for OCaml";
436+
package = pkgs.ocamlPackages.ocaml-lsp;
437+
}
433438
{
434439
name = "ols";
435440
description = "ols for the Odin programming language";

tests/test-sources/plugins/lsp/_lsp.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
nil_ls.enable = true;
126126
nixd.enable = true;
127127
nushell.enable = true;
128+
ocamllsp.enable = true;
128129
ols.enable =
129130
# ols is not supported on aarch64-linux
130131
(pkgs.stdenv.hostPlatform.system != "aarch64-linux")

0 commit comments

Comments
 (0)