mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-15 11:44:32 +02:00
plugins: use mk{Neovim,Vim}Plugin's dependencies parameter
This commit is contained in:
parent
b66559d8ef
commit
1a64636839
49 changed files with 147 additions and 207 deletions
|
@ -14,6 +14,8 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
|
||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||
|
||||
dependencies = [ "nodejs" ];
|
||||
|
||||
imports = [
|
||||
# TODO: added 2025-04-07, remove after 25.05
|
||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
||||
|
@ -24,8 +26,6 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
];
|
||||
|
||||
extraConfig = {
|
||||
dependencies.nodejs.enable = lib.mkDefault true;
|
||||
|
||||
plugins.sg.settings.node_executable = lib.mkIf config.dependencies.nodejs.enable (
|
||||
lib.mkDefault (lib.getExe config.dependencies.nodejs.package)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue