From 076c0fe4a678e984301dbafe040728c6121751e0 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Tue, 17 May 2022 21:45:39 +0800 Subject: [PATCH] fix(telescope): fix `SPC f f` key binding for telescope layer --- autoload/SpaceVim/layers/telescope.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/SpaceVim/layers/telescope.vim b/autoload/SpaceVim/layers/telescope.vim index 3a258dbe1..1cea36339 100644 --- a/autoload/SpaceVim/layers/telescope.vim +++ b/autoload/SpaceVim/layers/telescope.vim @@ -118,7 +118,7 @@ function! SpaceVim#layers#telescope#config() abort let lnum = expand('') + s:lnum - 1 call SpaceVim#mapping#space#def('nnoremap', ['f', 'f'], - \ "exe 'CtrlP ' . fnamemodify(bufname('%'), ':h')", + \ "exe 'Telescope find_files cwd=' . fnamemodify(bufname('%'), ':p:h')", \ ['find-files-in-buffer-directory', \ [ \ '[SPC f f] is to find files in the directory of the current buffer',