mirror of
https://github.com/nix-community/home-manager
synced 2024-12-25 03:09:47 +01:00
Merge pull request #212 from teto/neovim_configurable
neovim: add 'configure' flag
This commit is contained in:
commit
08ce0579aa
1 changed files with 23 additions and 1 deletions
|
@ -58,6 +58,28 @@ in
|
||||||
List here Python 3 packages required for your plugins to work.
|
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)
|
inherit (cfg)
|
||||||
extraPython3Packages withPython3
|
extraPython3Packages withPython3
|
||||||
extraPythonPackages withPython
|
extraPythonPackages withPython
|
||||||
withRuby;
|
withRuby configure;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue