1
0
Fork 0

nvim: dynamic completion selection for blink.cmp

This commit is contained in:
Daniel Kempkens 2024-12-27 23:20:48 +01:00
parent ebe0e2289e
commit 8d87a14445
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -30,7 +30,10 @@
:<C-b> [:scroll_documentation_up :fallback]
:<C-f> [:scroll_documentation_down :fallback]
:<C-e> [:hide :fallback]}
:completion {:list {:selection :manual}
:completion {:list {:selection (fn [ctx]
(if (= ctx.mode :cmdline)
:manual
:preselect))}
:menu {:min_width 20
:max_height 25
:draw {:treesitter [:lsp]}}