1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

vim: formatting

This commit is contained in:
Daiderd Jordan 2018-08-03 20:31:37 +02:00
parent 958ebb7966
commit 6424eb998d
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -3,7 +3,6 @@
with lib;
let
cfg = config.programs.vim;
vim = pkgs.vim_configurable.customize {
@ -21,25 +20,21 @@ let
};
vimOptions = concatMapStringsSep "\n" (attr: attr.text) (attrValues cfg.vimOptions);
in
in {
{
options = {
programs.vim.enable = mkOption {
type = types.bool;
default = false;
description = ''
Whether to configure vim.
'';
description = "Whether to configure vim.";
};
programs.vim.enableSensible = mkOption {
type = types.bool;
default = false;
example = true;
description = ''
Enable sensible configuration options for vim.
'';
description = "Enable sensible configuration options for vim.";
};
programs.vim.extraKnownPlugins = mkOption {
@ -60,18 +55,14 @@ in {
};
}
'';
description = ''
Custom plugin declarations to add to VAM's knownPlugins.
'';
description = "Custom plugin declarations to add to VAM's knownPlugins.";
};
programs.vim.plugins = mkOption {
type = types.listOf types.attrs;
default = [];
example = [ { names = [ "surround" "vim-nix" ]; } ];
description = ''
VAM plugin dictionaries to use for vim_configurable.
'';
description = "VAM plugin dictionaries to use for vim_configurable.";
};
programs.vim.vimOptions = mkOption {
@ -83,11 +74,8 @@ in {
programs.vim.vimConfig = mkOption {
type = types.lines;
default = "";
description = ''
Extra vimrcConfig to use for vim_configurable.
'';
description = "Extra vimrcConfig to use for vim_configurable.";
};
};
config = mkIf cfg.enable {