languages/nix: use stricter type for lsp.server

This commit is contained in:
diniamo 2024-10-27 12:53:44 +01:00
parent da86e554a6
commit 30a8a8fce0

View file

@ -145,7 +145,7 @@ in {
enable = mkEnableOption "Nix LSP support" // {default = config.vim.languages.enableLSP;}; enable = mkEnableOption "Nix LSP support" // {default = config.vim.languages.enableLSP;};
server = mkOption { server = mkOption {
description = "Nix LSP server to use"; description = "Nix LSP server to use";
type = str; type = enum (attrNames servers);
default = defaultServer; default = defaultServer;
}; };