mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-04 01:55:11 +02:00
modules/lsp/servers: move to dedicated file/dir
Move the code related to the `lsp.servers` option into a dedicated module, cleaning up `modules/lsp/default.nix`.
This commit is contained in:
parent
64cd675ece
commit
5308425718
5 changed files with 175 additions and 166 deletions
21
modules/lsp/servers/server-renames.nix
Normal file
21
modules/lsp/servers/server-renames.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ 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" ])
|
||||
];
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue