1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-13 23:17:59 +08:00

chore(core): fix flygrep mapping

This commit is contained in:
Eric Wong 2025-02-03 21:53:02 +08:00
parent d7faed1cdd
commit 40f686cc3a
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848

View File

@ -637,7 +637,7 @@ function! SpaceVim#mapping#space#init() abort
call SpaceVim#mapping#space#def('nnoremap', ['s', 't', 'J'], 'call SpaceVim#plugins#searcher#find(expand("<cword>"), "pt")',
\ 'Background search cursor words in project with pt', 1)
if g:spacevim_flygrep_next_version
if g:spacevim_flygrep_next_version && has('nvim-0.10.0')
call SpaceVim#mapping#space#def('nnoremap', ['s', '/'], 'FlyGrep',
\ 'grep-on-the-fly', 1)
else