plugins/lsp: add nixd language server

This commit is contained in:
Gaetan Lepage 2023-06-13 09:39:54 +02:00 committed by Gaétan Lepage
parent da04916de2
commit 885a746073
4 changed files with 95 additions and 5 deletions

View file

@ -0,0 +1,35 @@
{pkgs}: {
example = {
plugins.lsp = {
enable = true;
servers.nixd = {
# TODO nixd is currently broken on Darwin
# https://github.com/nix-community/nixd/issues/107
# Thus, this test is currently disabled.
enable = !pkgs.stdenv.isDarwin;
settings = {
eval = {
target = {
args = ["foo" "bar"];
installable = "";
};
depth = 0;
workers = 3;
};
formatting = {
command = "nixpkgs-fmt";
};
options = {
enable = true;
target = {
args = ["yes" "no" "maybe"];
installable = "";
};
};
};
};
};
};
}