mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-30 12:24:28 +02:00
plugins/lsp: add nixd language server
This commit is contained in:
parent
da04916de2
commit
885a746073
4 changed files with 95 additions and 5 deletions
35
tests/test-sources/plugins/lsp/nixd.nix
Normal file
35
tests/test-sources/plugins/lsp/nixd.nix
Normal 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 = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
{pkgs}: {
|
||||
empty = {
|
||||
plugins.lsp.enable = true;
|
||||
};
|
||||
|
@ -87,6 +87,10 @@
|
|||
lua-ls.enable = true;
|
||||
metals.enable = true;
|
||||
nil_ls.enable = true;
|
||||
# TODO nixd is currently broken on Darwin
|
||||
# https://github.com/nix-community/nixd/issues/107
|
||||
# Thus, this test is currently disabled.
|
||||
nixd.enable = !pkgs.stdenv.isDarwin;
|
||||
pylsp.enable = true;
|
||||
pyright.enable = true;
|
||||
rnix-lsp.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue