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:
parent
40c94aefd5
commit
c252310aa0
|
@ -2,13 +2,22 @@ let
|
||||||
lib = (import <nixpkgs> {}).lib;
|
lib = (import <nixpkgs> {}).lib;
|
||||||
|
|
||||||
in
|
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,14 +32,14 @@ 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";}));
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue