mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
modules/lsp: don't enable wildcard server
The wildcard server ("*") should have its config set, but not be enabled through `vim.lsp.enable()`.
This commit is contained in:
parent
1df98b6636
commit
2d65c66a1a
1 changed files with 10 additions and 2 deletions
|
@ -5,7 +5,12 @@
|
|||
settings ? null,
|
||||
pkgs ? { },
|
||||
}@args:
|
||||
{ lib, name, ... }:
|
||||
{
|
||||
lib,
|
||||
name,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) types;
|
||||
displayName = args.name or "the language server";
|
||||
|
@ -31,7 +36,10 @@ in
|
|||
description = ''
|
||||
Whether to call `vim.lsp.enable()` for ${displayName}.
|
||||
'';
|
||||
default = true;
|
||||
default = config.name != "*";
|
||||
defaultText = lib.literalMD ''
|
||||
`true`, unless the server's `name` is `*`
|
||||
'';
|
||||
example = false;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue