mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/languages: move to by-name
This commit is contained in:
parent
9d323f3ec7
commit
b1d0959bc9
71 changed files with 19 additions and 36 deletions
34
plugins/by-name/godot/default.nix
Normal file
34
plugins/by-name/godot/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
lib,
|
||||
helpers,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
helpers.vim-plugin.mkVimPlugin {
|
||||
name = "godot";
|
||||
originalName = "vim-godot";
|
||||
package = "vim-godot";
|
||||
globalPrefix = "godot_";
|
||||
|
||||
maintainers = [ maintainers.GaetanLepage ];
|
||||
|
||||
extraOptions = {
|
||||
godotPackage = lib.mkPackageOption pkgs "godot" {
|
||||
nullable = true;
|
||||
default = "godot_4";
|
||||
};
|
||||
};
|
||||
|
||||
settingsOptions = {
|
||||
executable = helpers.defaultNullOpts.mkStr "godot" ''
|
||||
Path to the `godot` executable.
|
||||
'';
|
||||
};
|
||||
|
||||
settingsExample = {
|
||||
executable = "godot";
|
||||
};
|
||||
|
||||
extraConfig = cfg: { extraPackages = [ cfg.godotPackage ]; };
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue