mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 19:49:45 +01:00
vim: add options
This commit is contained in:
parent
5013155e58
commit
a2e09b4c9d
1 changed files with 14 additions and 1 deletions
|
@ -9,17 +9,25 @@ let
|
||||||
|
|
||||||
knownSettings = {
|
knownSettings = {
|
||||||
background = types.enum [ "dark" "light" ];
|
background = types.enum [ "dark" "light" ];
|
||||||
|
backupdir = types.listOf types.str;
|
||||||
copyindent = types.bool;
|
copyindent = types.bool;
|
||||||
|
directory = types.listOf types.str;
|
||||||
expandtab = types.bool;
|
expandtab = types.bool;
|
||||||
hidden = types.bool;
|
hidden = types.bool;
|
||||||
history = types.int;
|
history = types.int;
|
||||||
ignorecase = types.bool;
|
ignorecase = types.bool;
|
||||||
modeline = types.bool;
|
modeline = types.bool;
|
||||||
|
mouse = types.enum [ "n" "v" "i" "c" "h" "a" "r" ];
|
||||||
|
mousefocus = types.bool;
|
||||||
|
mousehide = types.bool;
|
||||||
|
mousemodel = types.enum [ "extend" "popup" "popup_setpos" ];
|
||||||
number = types.bool;
|
number = types.bool;
|
||||||
relativenumber = types.bool;
|
relativenumber = types.bool;
|
||||||
shiftwidth = types.int;
|
shiftwidth = types.int;
|
||||||
smartcase = types.bool;
|
smartcase = types.bool;
|
||||||
tabstop = types.int;
|
tabstop = types.int;
|
||||||
|
undodir = types.listOf types.str;
|
||||||
|
undofile = types.bool;
|
||||||
};
|
};
|
||||||
|
|
||||||
vimSettingsType = types.submodule {
|
vimSettingsType = types.submodule {
|
||||||
|
@ -38,7 +46,12 @@ let
|
||||||
let
|
let
|
||||||
v =
|
v =
|
||||||
if isBool value then (if value then "" else "no") + name
|
if isBool value then (if value then "" else "no") + name
|
||||||
else name + "=" + toString value;
|
else
|
||||||
|
"${name}=${
|
||||||
|
if isList value
|
||||||
|
then concatStringsSep "," value
|
||||||
|
else toString value
|
||||||
|
}";
|
||||||
in
|
in
|
||||||
optionalString (value != null) ("set " + v);
|
optionalString (value != null) ("set " + v);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue