mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
modules/dependencies: add distant
This commit is contained in:
parent
662ad478f2
commit
b4b81587f3
2 changed files with 11 additions and 8 deletions
|
@ -11,6 +11,7 @@ let
|
||||||
ctags.default = "ctags";
|
ctags.default = "ctags";
|
||||||
curl.default = "curl";
|
curl.default = "curl";
|
||||||
direnv.default = "direnv";
|
direnv.default = "direnv";
|
||||||
|
distant.default = "distant";
|
||||||
gcc.default = "gcc";
|
gcc.default = "gcc";
|
||||||
gh.default = "gh";
|
gh.default = "gh";
|
||||||
git = {
|
git = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, pkgs, ... }:
|
{ lib, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib) types;
|
inherit (lib) types;
|
||||||
inherit (lib.nixvim)
|
inherit (lib.nixvim)
|
||||||
|
@ -17,14 +17,16 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
|
||||||
setup = ":setup";
|
setup = ":setup";
|
||||||
|
|
||||||
extraOptions = {
|
imports = [
|
||||||
distantPackage = lib.mkPackageOption pkgs "distant" {
|
# TODO: added 2025-04-07, remove after 25.05
|
||||||
nullable = true;
|
(lib.nixvim.mkRemovedPackageOptionModule {
|
||||||
};
|
plugin = "distant";
|
||||||
};
|
packageName = "distant";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
extraConfig = cfg: {
|
extraConfig = {
|
||||||
extraPackages = [ cfg.distantPackage ];
|
dependencies.distant.enable = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue