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;
|
||||
|
||||
in
|
||||
{
|
||||
{
|
||||
|
||||
clementine.spotify = false;
|
||||
whitelistedLicenses = with lib.licenses; [ wtfpl ];
|
||||
vim =
|
||||
{ gui = "gtk3";
|
||||
python = true;
|
||||
multibyteSupport = true;
|
||||
};
|
||||
|
||||
packageOverrides = pkgs: with pkgs;
|
||||
let
|
||||
myVimBundle = with pkgs.vimPlugins; {
|
||||
rec {
|
||||
myVim = (vim_configurable.override {python = python3;}).customize {
|
||||
# executable/ package name
|
||||
name = "vim";
|
||||
vimrcConfig.packages.myVimPackage = with pkgs.vimPlugins; {
|
||||
# loaded on start
|
||||
start = [
|
||||
ale
|
||||
|
@ -23,14 +32,14 @@ in
|
|||
vim-nix
|
||||
];
|
||||
};
|
||||
in
|
||||
rec {
|
||||
# build with debug symbols and in debug mode (less optimized)
|
||||
myVim = vim_configurable.customize {
|
||||
name = "vim-with-plugins";
|
||||
vimrcConfig.packages.myVimPackage = myVimBundle;
|
||||
vimrcConfig.customRC = ''
|
||||
if filereadable($HOME . "/.vimrc")
|
||||
source ~/.vimrc
|
||||
endif
|
||||
'';
|
||||
};
|
||||
# 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";}));
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue