summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-05-29 20:08:35 +0200
committerlassulus <lassulus@lassul.us>2022-05-29 20:08:35 +0200
commitc2e75dfff1541fedfde2c6174b09333cd502a218 (patch)
tree62bac93bcff72e09d1f7c6dc5a0f9aaa3e1de64d /lass/2configs
parent2a5c6c2e53d4dc945ec1c7b23510803da0669c22 (diff)
l vim: use fzf tools
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/vim.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/lass/2configs/vim.nix b/lass/2configs/vim.nix
index 49acabbe5..a5860caa4 100644
--- a/lass/2configs/vim.nix
+++ b/lass/2configs/vim.nix
@@ -115,10 +115,17 @@ let
" copy/paste from/to xclipboard
set clipboard=unnamedplus
+
+ " use fzf to switch files
+ nnoremap <C-p> :FZF<CR>
+ nnoremap <C-l> :Rg<CR>
+ let g:fzf_layout = { 'down': '~15%' }
'';
extra-runtimepath = concatMapStringsSep "," (pkg: "${pkg.rtp}") [
pkgs.vimPlugins.undotree
+ pkgs.vimPlugins.fzf-vim
+ pkgs.vimPlugins.fzfWrapper
(pkgs.vimUtils.buildVimPlugin {
name = "file-line-1.0";
src = pkgs.fetchFromGitHub {