chore: add language.<name>.lsp.servers deprecation information

This commit is contained in:
Snoweuph 2026-04-14 00:51:36 +02:00
commit ec8a66bb3c
No known key found for this signature in database
GPG key ID: BEFC41DA223CEC55
16 changed files with 126 additions and 33 deletions

View file

@ -9,7 +9,7 @@
inherit (lib.modules) mkIf mkMerge;
inherit (lib) genAttrs;
inherit (lib.types) enum listOf;
inherit (lib.nvim.types) mkGrammarOption deprecatedSingleOrListOf;
inherit (lib.nvim.types) mkGrammarOption deprecatedSingleOrListOf enumWithRename;
inherit (lib.nvim.dag) entryAnywhere;
inherit (lib.nvim.attrsets) mapListToAttrs;
@ -48,7 +48,12 @@ in {
defaultText = literalExpression "config.vim.lsp.enable";
};
servers = mkOption {
type = listOf (enum servers);
type = listOf (enumWithRename
"vim.languages.elixir.lsp.servers"
servers
{
elixirls = "elixir-ls";
});
default = defaultServers;
description = "Elixir LSP server to use";
};