mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-24 12:45:24 +02:00
treewide: Reformat with nixfmt
This commit is contained in:
parent
c6281260dc
commit
62f32bfc71
459 changed files with 28139 additions and 26377 deletions
|
@ -4,9 +4,11 @@
|
|||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
with lib;
|
||||
let
|
||||
cfg = config.clipboard;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options = {
|
||||
clipboard = {
|
||||
register = mkOption {
|
||||
|
@ -14,9 +16,7 @@ in {
|
|||
Sets the register to use for the clipboard.
|
||||
Learn more at https://neovim.io/doc/user/options.html#'clipboard'.
|
||||
'';
|
||||
type = with types;
|
||||
nullOr
|
||||
(either str (listOf str));
|
||||
type = with types; nullOr (either str (listOf str));
|
||||
default = null;
|
||||
example = "unnamedplus";
|
||||
};
|
||||
|
@ -25,19 +25,17 @@ in {
|
|||
type = types.submodule {
|
||||
options =
|
||||
mapAttrs
|
||||
(
|
||||
name: packageName: {
|
||||
(name: packageName: {
|
||||
enable = mkEnableOption name;
|
||||
package = mkPackageOption pkgs packageName {};
|
||||
}
|
||||
)
|
||||
{
|
||||
wl-copy = "wl-clipboard";
|
||||
xclip = "xclip";
|
||||
xsel = "xsel";
|
||||
};
|
||||
package = mkPackageOption pkgs packageName { };
|
||||
})
|
||||
{
|
||||
wl-copy = "wl-clipboard";
|
||||
xclip = "xclip";
|
||||
xsel = "xsel";
|
||||
};
|
||||
};
|
||||
default = {};
|
||||
default = { };
|
||||
description = ''
|
||||
Package(s) to use as the clipboard provider.
|
||||
Learn more at `:h clipboard`.
|
||||
|
@ -49,9 +47,6 @@ in {
|
|||
config = {
|
||||
opts.clipboard = mkIf (cfg.register != null) cfg.register;
|
||||
|
||||
extraPackages =
|
||||
mapAttrsToList
|
||||
(n: v: v.package)
|
||||
(filterAttrs (n: v: v.enable) cfg.providers);
|
||||
extraPackages = mapAttrsToList (n: v: v.package) (filterAttrs (n: v: v.enable) cfg.providers);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue