picker global definitions #1726
-
Is it possible to set global definitions for pickers at the config instead of in keymap or as cargs? For example require('fzf-lua').setup({
lsp = {
definition = { jump_to_single_result = true },
references = { winopts = {...}}
} So far they seem to be ingored. Would be really nice to set some winopts as well to each picker |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
All LSP locations are groups under lsp, take a look at defaults.lua to see all categories: require('fzf-lua').setup({
lsp = {
jump_to_single_result = true,
winopts = {...},
}
}) |
Beta Was this translation helpful? Give feedback.
-
Thank you for a quick respnse (and a great plugin!!). This works. |
Beta Was this translation helpful? Give feedback.
-
I am used to a very specific config I had with telescope for LSP stuff, where for anything cword dependent like code actions, referenfces, calls etc I had a cursor positioned dropdown list, and anything 'browsing' related like document symbols, workspace symbols I used the freshly minted 'ivy' profile. While all this is possible with args, having defaults makes it so that no matter where I am calling those pickers from (maps, cmd, lua functions ...) it uses those winopts. I get that this is a very opinionated workflow and there is probably no real benefit of having it in the repo. |
Beta Was this translation helpful? Give feedback.
This is indeed very opinionated and will probably raise issues from other users, personally I also use code…