mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
Introduce a bespoke `global-server.nix` module. This is less DRY, but
much simpler.
The `lsp.servers."*"` options are different enough from the other
`lsp.servers.<name>` options that it is simpler to just declare them
separately.
Now that we have a dedicated `global-server.nix` module, we no longer
need to split the normal server module into `server.nix`+`server-base.nix`
This partially reverts f2e96b67a3
21 lines
759 B
Nix
21 lines
759 B
Nix
{ lib, ... }:
|
|
{
|
|
# NOTE: we need a warnings option for `mkRenamedOptionModule` to warn about unexpected definitions
|
|
# This can be removed when all rename aliases are gone
|
|
options.warnings = lib.mkOption {
|
|
type = with lib.types; listOf str;
|
|
description = "Warnings to propagate to nixvim's `warnings` option.";
|
|
default = [ ];
|
|
internal = true;
|
|
visible = false;
|
|
};
|
|
|
|
imports = [
|
|
# TODO: rename added 2025-04-30 (during the 25.05 cycle)
|
|
# The previous name `config` was introduced 2025-04-28 (during the 25.05 cycle)
|
|
# Because the previous name `config` never made it into a stable release,
|
|
# we could consider dropping this alias sooner than normal.
|
|
(lib.mkRenamedOptionModule [ "config" ] [ "settings" ])
|
|
];
|
|
|
|
}
|