nix-community.nixvim/tests/test-sources/plugins/lsp/language-servers/nixd.nix
traxys 908932b53c plugins/nixd: Adapt to new options
Note that due to the structure of the code we can't introduce
deprecation warnings, it results in:

  cannot find attribute `plugins.lsp.servers.nixd.settings.XXX`
2024-05-12 19:27:25 +02:00

31 lines
698 B
Nix

{
example = {
plugins.lsp = {
enable = true;
servers.nixd = {
enable = true;
settings = {
nixpkgs.expr = ''
import (builtins.getFlake "/home/lyc/workspace/CS/OS/NixOS/flakes").inputs.nixpkgs { }
'';
formatting = {
command = [ "nixpkgs-fmt" ];
};
options = {
nixos.expr = ''
(builtins.getFlake "/home/lyc/flakes").nixosConfigurations.adrastea.options
'';
home-manager.expr = ''
(builtins.getFlake "/home/lyc/flakes").homeConfigurations."lyc@adrastea".options
'';
};
};
};
};
};
}