l 2 vim: add fugitive & unimpared to vim plugins

This commit is contained in:
lassulus 2016-03-06 01:50:44 +01:00
parent 20025f7b12
commit 5f800d02e8

View File

@ -1,7 +1,8 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let let
customPlugins.mustang2 = pkgs.vimUtils.buildVimPlugin { customPlugins = {
mustang2 = pkgs.vimUtils.buildVimPlugin {
name = "Mustang2"; name = "Mustang2";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "croaker"; owner = "croaker";
@ -10,6 +11,16 @@ let
sha256 = "0zlmcrr04j3dkiivrhqi90f618lmnnnpvbz1b9msfs78cmgw9w67"; sha256 = "0zlmcrr04j3dkiivrhqi90f618lmnnnpvbz1b9msfs78cmgw9w67";
}; };
}; };
unimpaired = pkgs.vimUtils.buildVimPlugin {
name = "unimpaired-vim";
src = pkgs.fetchFromGitHub {
owner = "tpope";
repo = "vim-unimpaired";
rev = "11dc568dbfd7a56866a4354c737515769f08e9fe";
sha256 = "1an941j5ckas8l3vkfhchdzjwcray16229rhv3a1d4pbxifwshi8";
};
};
};
in { in {
@ -105,11 +116,24 @@ in {
"esc timeout "esc timeout
set timeoutlen=1000 ttimeoutlen=0 set timeoutlen=1000 ttimeoutlen=0
"foldfunctions
inoremap <F9> <C-O>za
nnoremap <F9> za
onoremap <F9> <C-C>za
vnoremap <F9> zf
''; '';
vimrcConfig.vam.knownPlugins = pkgs.vimPlugins // customPlugins; vimrcConfig.vam.knownPlugins = pkgs.vimPlugins // customPlugins;
vimrcConfig.vam.pluginDictionaries = [ vimrcConfig.vam.pluginDictionaries = [
{ names = [ "Gundo" "commentary" "mustang2" ]; } { names = [
"Gundo"
"commentary"
"mustang2"
"extradite"
"fugitive"
"unimpaired"
]; }
{ names = [ "vim-addon-nix" ]; ft_regex = "^nix\$"; } { names = [ "vim-addon-nix" ]; ft_regex = "^nix\$"; }
]; ];