vim: nouvelle façon d'appeler les plugins, reorga du code
parent
4fd9d0d7f8
commit
f7264ae434
@ -1,22 +1,28 @@
|
|||||||
with import <nixpkgs> {};
|
{pkgs, ... }:
|
||||||
|
|
||||||
vim_configurable.customize {
|
let
|
||||||
|
myVim = pkgs.vim_configurable.customize {
|
||||||
# Specifies the vim binary name.
|
# Specifies the vim binary name.
|
||||||
# E.g. set this to "my-vim" and you need to type "my-vim" to open this vim
|
# E.g. set this to "my-vim" and you need to type "my-vim" to open this vim
|
||||||
# This allows to have multiple vim packages installed (e.g. with a different set of plugins)
|
# This allows to have multiple vim packages installed (e.g. with a different set of plugins)
|
||||||
name = "vim";
|
name = "vim";
|
||||||
vimrcConfig.customRC = builtins.readFile ./vimrc;
|
vimrcConfig.customRC = builtins.readFile ./vimrc;
|
||||||
vimrcConfig.vam.knownPlugins = pkgs.vimPlugins;
|
vimrcConfig.packages.myVimPackage = with pkgs.vimPlugins; {
|
||||||
vimrcConfig.vam.pluginDictionaries = [
|
start = [
|
||||||
{ names = [
|
wombat256-vim
|
||||||
# Here you can place all your vim plugins
|
|
||||||
# They are installed managed by `vam` (a vim plugin manager)
|
|
||||||
#"vim-addon-nix"
|
|
||||||
"elm-vim"
|
|
||||||
"vim-fish"
|
|
||||||
"vim-nix"
|
|
||||||
"wombat256-vim"
|
|
||||||
"vimwiki"
|
|
||||||
]; }
|
|
||||||
];
|
];
|
||||||
|
opt = [
|
||||||
|
elm-vim
|
||||||
|
vim-fish
|
||||||
|
vim-nix
|
||||||
|
vimwiki
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
in {
|
||||||
|
programs.vim = {
|
||||||
|
defaultEditor = true;
|
||||||
|
package = myVim;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue