1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-17 16:49:45 +01:00

neovim: add 'configure' flag

so that we have the same options as in nixpkgs.

(cherry picked from commit be60600a47)
This commit is contained in:
Matthieu Coudron 2018-01-31 17:14:01 +09:00 committed by Robert Helgesson
parent afa865587e
commit 474478c4a3
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -58,6 +58,28 @@ in
List here Python 3 packages required for your plugins to work.
'';
};
configure = mkOption {
type = types.nullOr types.attrs;
default = null;
example = literalExample ''
configure = {
customRC = $''''
" here your custom configuration goes!
$'''';
packages.myVimPackage = with pkgs.vimPlugins; {
# loaded on launch
start = [ fugitive ];
# manually loadable by calling `:packadd $plugin-name`
opt = [ ];
};
};
'';
description = ''
Generate your init file from your list of plugins and custom commands,
and loads it from the store via <command>nvim -u /nix/store/hash-vimrc</command>
'';
};
};
};
@ -67,7 +89,7 @@ in
inherit (cfg)
extraPython3Packages withPython3
extraPythonPackages withPython
withRuby;
withRuby configure;
})
];
};