mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-03 09:36:10 +02:00
added formatter + reformat existing codebase (#175)
This commit is contained in:
parent
0bf4313f22
commit
264de8cefb
96 changed files with 3727 additions and 3341 deletions
|
@ -1,10 +1,13 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.plugins.floaterm;
|
||||
helpers = import ../helpers.nix { inherit lib; };
|
||||
in
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.plugins.floaterm;
|
||||
helpers = import ../helpers.nix {inherit lib;};
|
||||
in {
|
||||
options = {
|
||||
plugins.floaterm = {
|
||||
enable = mkEnableOption "floaterm";
|
||||
|
@ -21,7 +24,7 @@ in
|
|||
default = null;
|
||||
};
|
||||
winType = mkOption {
|
||||
type = types.nullOr (types.enum [ "float" "split" "vsplit" ]);
|
||||
type = types.nullOr (types.enum ["float" "split" "vsplit"]);
|
||||
default = null;
|
||||
};
|
||||
winWidth = mkOption {
|
||||
|
@ -45,17 +48,17 @@ in
|
|||
default = null;
|
||||
};
|
||||
opener = mkOption {
|
||||
type = types.nullOr (types.enum [ "edit" "split" "vsplit" "tabe" "drop" ]);
|
||||
type = types.nullOr (types.enum ["edit" "split" "vsplit" "tabe" "drop"]);
|
||||
description = "Command used for opening a file in the outside nvim from within :terminal";
|
||||
default = null;
|
||||
};
|
||||
autoClose = mkOption {
|
||||
type = types.nullOr (types.enum [ 0 1 2 ]);
|
||||
type = types.nullOr (types.enum [0 1 2]);
|
||||
description = "Whether to close floaterm window once the job gets finished.";
|
||||
default = null;
|
||||
};
|
||||
autoHide = mkOption {
|
||||
type = types.nullOr (types.enum [ 0 1 2 ]);
|
||||
type = types.nullOr (types.enum [0 1 2]);
|
||||
description = "Whether to hide previous floaterm before switching to or opening another one.";
|
||||
default = null;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue