summaryrefslogtreecommitdiff
path: root/pkgs/vim
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-07-31 22:21:35 +0200
committerAdrian Kummerlaender2018-07-31 22:21:35 +0200
commit4e415a7c3d43529880a8839e8ab19ebfb9c05925 (patch)
tree221c75f81b8b2cce1986c7a1a41c3317a9fbfbc6 /pkgs/vim
parent0749b4e023861357ae9cdd09c09d0a02bec6eea8 (diff)
downloadnixos_system-4e415a7c3d43529880a8839e8ab19ebfb9c05925.tar
nixos_system-4e415a7c3d43529880a8839e8ab19ebfb9c05925.tar.gz
nixos_system-4e415a7c3d43529880a8839e8ab19ebfb9c05925.tar.bz2
nixos_system-4e415a7c3d43529880a8839e8ab19ebfb9c05925.tar.lz
nixos_system-4e415a7c3d43529880a8839e8ab19ebfb9c05925.tar.xz
nixos_system-4e415a7c3d43529880a8839e8ab19ebfb9c05925.tar.zst
nixos_system-4e415a7c3d43529880a8839e8ab19ebfb9c05925.zip
Add nice vim-wordmotion plugin
Diffstat (limited to 'pkgs/vim')
-rw-r--r--pkgs/vim/conf/rc.vim2
-rw-r--r--pkgs/vim/custom.nix1
-rw-r--r--pkgs/vim/plugins.nix17
3 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/vim/conf/rc.vim b/pkgs/vim/conf/rc.vim
index bce2430..81f48e0 100644
--- a/pkgs/vim/conf/rc.vim
+++ b/pkgs/vim/conf/rc.vim
@@ -124,3 +124,5 @@ let g:undotree_SetFocusWhenToggle = 1
let g:localvimrc_sandbox = 0
let g:localvimrc_persistent = 2
+
+let g:wordmotion_prefix = '<Leader>'
diff --git a/pkgs/vim/custom.nix b/pkgs/vim/custom.nix
index 3d41861..7a7d9ed 100644
--- a/pkgs/vim/custom.nix
+++ b/pkgs/vim/custom.nix
@@ -26,6 +26,7 @@ in
"vim-polyglot"
"vim-counterpoint"
"vim-toggle-ui-elements"
+ "vim-wordmotion"
"vim-color-akr"
];}
];
diff --git a/pkgs/vim/plugins.nix b/pkgs/vim/plugins.nix
index 5088e74..5530560 100644
--- a/pkgs/vim/plugins.nix
+++ b/pkgs/vim/plugins.nix
@@ -3,6 +3,7 @@
let
buildVimPlugin = pkgs.vimUtils.buildVimPluginFrom2Nix;
in {
+
"vim-unimpaired" = buildVimPlugin {
name = "vim-unimpaired";
src = fetchgit {
@@ -11,6 +12,7 @@ in {
sha256 = "0jx9xybjswnaa6v7hhfqm2nyd5v54xjd02ikw56wm7h6sfgchllx";
};
};
+
"vim-counterpoint" = buildVimPlugin {
name = "vim-counterpoint";
src = fetchgit {
@@ -19,6 +21,7 @@ in {
sha256 = "02spr4mhj2035q45j8bf502jgpq76a518nv913zx46byfbl69lps";
};
};
+
"vim-mundo" = buildVimPlugin {
name = "vim-mundo";
src = fetchgit {
@@ -27,6 +30,7 @@ in {
sha256 = "052ywnd5r6ksiz1lsyqya9b94fdb0gr7krkdpc1gw1fx11qk5x2v";
};
};
+
"vim-toggle-ui-elements" = buildVimPlugin {
name = "vim-toggle-ui-elements";
src = fetchgit {
@@ -35,6 +39,7 @@ in {
sha256 = "0fl9kvp799l3nzy8lnjcb0y1hr3g1ba8n9v2mx83yaqdma0rvhi1";
};
};
+
"vim-git-commit-viewer" = buildVimPlugin {
name = "vim-git-commit-viewer";
src = fetchgit {
@@ -43,6 +48,7 @@ in {
sha256 = "0r0j8l0sm3xgb3hgmf0zm48mgj97nlkspg3jgv817nhwsl8pyc44";
};
};
+
"vim-far" = buildVimPlugin {
name = "vim-far";
src = fetchgit {
@@ -51,8 +57,19 @@ in {
sha256 = "15pcsd039srfvrj2a6f3ns8zh13vrbdx93pcyxzxd8i0vidshkmb";
};
};
+
+ "vim-wordmotion" = buildVimPlugin {
+ name = "vim-wordmotion";
+ src = fetchgit {
+ url = "https://github.com/chaoren/vim-wordmotion.git";
+ rev = "d8cd124a6e36f38f52a43cb9f144eddbc03d300f";
+ sha256 = "04ag0ilv8v5h823p685aic9rm8b1l44cs4j5xx4zv1ljg95fx68n";
+ };
+ };
+
"vim-color-akr" = buildVimPlugin {
name = "vim-color-akr";
src = ./conf/vim-color-akr;
};
+
}