LanguageClient-neovim
LanguageClient-neovim copied to clipboard
How to enable selection and quickfixlist build in fzf menu for findReferences?
Is your feature request related to a problem? Please describe.
When I find all references and they are displayed in the fzf menu, sometimes I want to be able to select some of them (or some of them) and build a quickfixist. We cannot change "global" fzf options, as they dont always make sense, to build a quickfix list, etc.
Describe the solution you'd like
Option to pass fzf arguments, upon calling find_References, and other.
Note
If this is already possible, please instruct me.
I tried this yesterday because I can do this in "raw" fzf, but couldn't make it work here. So for fzf I do this and it works well:
let $FZF_DEFAULT_OPTS = '--bind=ctrl-a:select-all --expect=ctrl-q'
function! Build_quickfix_list(lines)
call setqflist(map(copy(a:lines), '{ "filename": v:val }'))
copen
endfunction
let g:fzf_action = {
\ 'ctrl-q': function('Build_quickfix_list')
}
so then I tried: let g:LanguageClient_fzfOptions = '-m --bind=ctrl-a:select-all --expect=ctrl-q'
I can select all references, but then ctrl-q
doesn't work.
Selecting some of them works natively with Tab
, but same conclusion: I couldn'd find a way yet to make ctrl-q
to work.
Edit: this is link to #629