1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-27 20:51:05 +01:00
nixvim/plugins/by-name/gdscript-extended-lsp/default.nix
2025-11-24 23:11:17 +00:00

27 lines
751 B
Nix

{ config, lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "gdscript-extended-lsp";
package = "gdscript-extended-lsp-nvim";
maintainers = [ lib.maintainers.HeitorAugustoLN ];
settingsExample = {
picker = "snacks";
};
extraConfig = cfg: opts: {
warnings = lib.nixvim.mkWarnings "plugins.gdscript-extended-lsp" (
lib.mapAttrsToList
(picker: pluginName: {
when = cfg.settings.picker or null == picker && !config.plugins.${pluginName}.enable;
message = ''
You have defined `${opts.settings}.picker = "${picker}"` but `plugins.${pluginName}` is not enabled.
'';
})
{
telescope = "telescope";
snacks = "snacks";
}
);
};
}