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

@ -2,35 +2,44 @@ 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 ];
packageOverrides = pkgs: with pkgs; vim =
let { gui = "gtk3";
myVimBundle = with pkgs.vimPlugins; { python = true;
# loaded on start multibyteSupport = true;
start = [ };
ale
ctrlp packageOverrides = pkgs: with pkgs;
deoplete-jedi rec {
fugitive myVim = (vim_configurable.override {python = python3;}).customize {
nerdtree # executable/ package name
nerdtree-git-plugin name = "vim";
supertab vimrcConfig.packages.myVimPackage = with pkgs.vimPlugins; {
vim-pandoc # loaded on start
vim-pandoc-syntax start = [
vim-nix ale
]; ctrlp
}; deoplete-jedi
in fugitive
rec { nerdtree
nerdtree-git-plugin
supertab
vim-pandoc
vim-pandoc-syntax
vim-nix
];
};
vimrcConfig.customRC = ''
if filereadable($HOME . "/.vimrc")
source ~/.vimrc
endif
'';
};
# build with debug symbols and in debug mode (less optimized) # build with debug symbols and in debug mode (less optimized)
myVim = vim_configurable.customize {
name = "vim-with-plugins";
vimrcConfig.packages.myVimPackage = myVimBundle;
};
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";}));
}; };
} }