summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {