From c2e75dfff1541fedfde2c6174b09333cd502a218 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 29 May 2022 20:08:35 +0200 Subject: l vim: use fzf tools --- lass/2configs/vim.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lass/2configs') 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 :FZF + nnoremap :Rg + 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 { -- cgit v1.2.3