nvim: dynamic completion selection for blink.cmp
This commit is contained in:
parent
ebe0e2289e
commit
8d87a14445
1 changed files with 4 additions and 1 deletions
|
@ -30,7 +30,10 @@
|
||||||
:<C-b> [:scroll_documentation_up :fallback]
|
:<C-b> [:scroll_documentation_up :fallback]
|
||||||
:<C-f> [:scroll_documentation_down :fallback]
|
:<C-f> [:scroll_documentation_down :fallback]
|
||||||
:<C-e> [:hide :fallback]}
|
:<C-e> [:hide :fallback]}
|
||||||
:completion {:list {:selection :manual}
|
:completion {:list {:selection (fn [ctx]
|
||||||
|
(if (= ctx.mode :cmdline)
|
||||||
|
:manual
|
||||||
|
:preselect))}
|
||||||
:menu {:min_width 20
|
:menu {:min_width 20
|
||||||
:max_height 25
|
:max_height 25
|
||||||
:draw {:treesitter [:lsp]}}
|
:draw {:treesitter [:lsp]}}
|
||||||
|
|
Loading…
Reference in a new issue