mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +02:00
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`
31 lines
698 B
Nix
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
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|