1
0
mirror of https://github.com/mfontanini/presenterm.git synced 2026-09-01 23:33:21 -06:00

fix: correct Vim fzf reducer function in documentation

The reducer should return the whole line as-is since each line
is already a complete comment command.
This commit is contained in:
Bruno Rocha 2025-09-06 17:03:04 +01:00
parent 8a0b61aac1
commit cb4e6aec5d
No known key found for this signature in database
GPG Key ID: AB110BDC10ED0A39

View File

@ -211,7 +211,7 @@ if executable('presenterm') && executable('fzf')
inoremap <expr> <c-k> fzf#vim#complete(fzf#wrap({
\ 'source': 'presenterm --list-comment-commands',
\ 'options': '--header "Comment Command Selection" --no-hscroll',
\ 'reducer': { lines -> split(lines[0])[0] } }))
\ 'reducer': { lines -> lines[0] } }))
endif
```