summaryrefslogtreecommitdiff
path: root/modules/programs/vim.nix
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-08-03 20:31:37 +0200
committerDaiderd Jordan <daiderd@gmail.com>2018-08-03 20:31:37 +0200
commit6424eb998d01d706aaef33dcec31a7ec44098007 (patch)
tree01579462ba84d570ee3548d02ae40c30873ec244 /modules/programs/vim.nix
parent958ebb7966c1bc17d72085be021b3f7ef1cbdd99 (diff)
vim: formatting
Diffstat (limited to 'modules/programs/vim.nix')
-rw-r--r--modules/programs/vim.nix26
1 files changed, 7 insertions, 19 deletions
diff --git a/modules/programs/vim.nix b/modules/programs/vim.nix
index 4a17a1b..578c8f8 100644
--- a/modules/programs/vim.nix
+++ b/modules/programs/vim.nix
@@ -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 {