redo vim-with-plugins configuration

- executable name is vim too
- bundle a vimrc that just reads the ~/.vimrc for now
- use python3
This commit is contained in:
Trolli Schmittlauch 2018-10-25 01:31:26 +02:00
parent 40c94aefd5
commit c252310aa0

View file

@ -6,9 +6,18 @@ in
clementine.spotify = false; clementine.spotify = false;
whitelistedLicenses = with lib.licenses; [ wtfpl ]; whitelistedLicenses = with lib.licenses; [ wtfpl ];
vim =
{ gui = "gtk3";
python = true;
multibyteSupport = true;
};
packageOverrides = pkgs: with pkgs; packageOverrides = pkgs: with pkgs;
let rec {
myVimBundle = with pkgs.vimPlugins; { myVim = (vim_configurable.override {python = python3;}).customize {
# executable/ package name
name = "vim";
vimrcConfig.packages.myVimPackage = with pkgs.vimPlugins; {
# loaded on start # loaded on start
start = [ start = [
ale ale
@ -23,13 +32,13 @@ in
vim-nix vim-nix
]; ];
}; };
in vimrcConfig.customRC = ''
rec { if filereadable($HOME . "/.vimrc")
# build with debug symbols and in debug mode (less optimized) source ~/.vimrc
myVim = vim_configurable.customize { endif
name = "vim-with-plugins"; '';
vimrcConfig.packages.myVimPackage = myVimBundle;
}; };
# build with debug symbols and in debug mode (less optimized)
opencvDebug = enableDebugging ((opencv3.override {enablePython=true; enableGtk3=true; enableDocs=true; pythonPackages=pkgs.python3Packages; }).overrideAttrs (oldAttrs: rec {cmakeBuildType = "Debug";})); opencvDebug = enableDebugging ((opencv3.override {enablePython=true; enableGtk3=true; enableDocs=true; pythonPackages=pkgs.python3Packages; }).overrideAttrs (oldAttrs: rec {cmakeBuildType = "Debug";}));
}; };