l vim: use fzf tools

This commit is contained in:
lassulus 2022-05-29 20:08:35 +02:00
parent 2a5c6c2e53
commit c2e75dfff1

View File

@ -115,10 +115,17 @@ let
" copy/paste from/to xclipboard " copy/paste from/to xclipboard
set clipboard=unnamedplus 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}") [ extra-runtimepath = concatMapStringsSep "," (pkg: "${pkg.rtp}") [
pkgs.vimPlugins.undotree pkgs.vimPlugins.undotree
pkgs.vimPlugins.fzf-vim
pkgs.vimPlugins.fzfWrapper
(pkgs.vimUtils.buildVimPlugin { (pkgs.vimUtils.buildVimPlugin {
name = "file-line-1.0"; name = "file-line-1.0";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {