nix-community.nixvim/tests/test-sources/plugins/lsp/language-servers/nixd.nix

32 lines
698 B
Nix
Raw Permalink Normal View History

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