skim.vim
skim.vim copied to clipboard
preview doesn't work
- Category
- [ ] Question
- [x] Bug
- [ ] Suggestion
- OS
- [x] Linux
- [ ] macOS
- [ ] Windows
- [ ] Etc.
- Vim
- [ ] Vim
- [x] Neovim
Hi all!
Starting nvim with the following minimal vimrc:
set nocompatible
set runtimepath+=~/debug-nvim/skim.vim
filetype plugin indent on
"let g:skim_layout = { 'window': 'call FloatingFZF()' }
command! -bang -nargs=* Rg call fzf#vim#rg_interactive(<q-args>, fzf#vim#with_preview('right:50%:hidden', 'alt-h'))
and calling :Rg aoeu results in:
Error detected while processing function fzf#vim#with_preview:
line 22:
E117: Unknown function: skim#shellescape
E15: Invalid expression: ['--preview-window', window, '--preview', (s:is_win ? s:bin.preview : skim#shellescape(s:bin.preview)).' {}']
line 25:
E121: Undefined variable: preview
E116: Invalid arguments for function extend
line 27:
E121: Undefined variable: preview
E116: Invalid arguments for function <SNR>26_merge_opts
Error detected while processing function fzf#vim#rg_interactive[3]..fzf#vim#grep_interactive[23]..<SNR>26_fzf[18]..<SNR>26_wrap:
line 9:
E117: Unknown function: skim#wrap
E15: Invalid expression: skim#wrap(a:name, opts, a:bang)
line 10:
E121: Undefined variable: wrapped
line 14:
E121: Undefined variable: wrapped
E15: Invalid expression: wrapped
Error detected while processing function fzf#vim#rg_interactive[3]..fzf#vim#grep_interactive[23]..<SNR>26_fzf:
line 18:
E117: Unknown function: skim#run
E15: Invalid expression: skim#run(s:wrap(a:name, merged, bang))
Am I missing something?