mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-28 05:01:03 +01:00
plugins/gdscript-extended-lsp: init
This commit is contained in:
parent
6bd43bf321
commit
9a52ac7c36
2 changed files with 73 additions and 0 deletions
27
plugins/by-name/gdscript-extended-lsp/default.nix
Normal file
27
plugins/by-name/gdscript-extended-lsp/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ 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";
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue