fzf.vim icon indicating copy to clipboard operation
fzf.vim copied to clipboard

fzf-maps-n keymap in Lua config

Open jrock2004 opened this issue 3 years ago • 1 comments

  • [x] I have fzf 0.23.0 or above
  • [x] I have read through https://github.com/junegunn/fzf.vim/blob/master/README.md
  • [x] I have read through https://github.com/junegunn/fzf/blob/master/README-VIM.md
  • [x] I have read through the manual page of fzf (man fzf)
  • [x] I have searched through the existing issues

I am trying to convert my neovim config to lua and trying to figure how I could convert the following to work with lua and paq instead of vim and plug

nmap <leader><tab> <plug>(fzf-maps-n)

I tried

map('n', '<leader><tab>', '<plug>(fzf-maps-n)', {})

But I think plug was specific to vim-plug

jrock2004 avatar Mar 27 '21 17:03 jrock2004

I think plug was specific to vim-plug

No, <Plug> is not specific to vim-plug. You can check it with :help <Plug>

Maybe you can do something like this:

map('n', '<leader><tab>', '<plug>(fzf-maps-n)', {noremap = false})

because you can't use <Plug> mapping with noremap option (I'm not sure the default noremap value with lua mapping in neovim). And also I think you should ask those question on neovim repo rather than this repo, you would get an answer faster that way.

bruhtus avatar Sep 01 '21 08:09 bruhtus