How to show the source in the completion menu? #329
-
Beta Was this translation helpful? Give feedback.
Answered by
gegenschall
Nov 14, 2024
Replies: 2 comments
-
{
'saghen/blink.cmp',
-- enabled = false,
---@module 'blink.cmp'
---@type blink.cmp.Config
opts = {
windows = {
autocomplete = {
draw = {
columns = { { 'label', 'label_description', gap = 1 }, { 'kind_icon', 'kind' } },
},
},
},
},
},
returns: Error executing vim.schedule lua callback: ...im/lazy/blink.cmp/lua/blink/cmp/windows/autocomplete.lua:366: Invalid autocomplete window draw config
stack traceback:
[C]: in function 'error'
...im/lazy/blink.cmp/lua/blink/cmp/windows/autocomplete.lua:366: in function 'get_draw_fn'
...im/lazy/blink.cmp/lua/blink/cmp/windows/autocomplete.lua:320: in function 'draw'
...im/lazy/blink.cmp/lua/blink/cmp/windows/autocomplete.lua:139: in function 'open_with_items'
.../.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/init.lua:57: in function <.../.local/share/nvim/lazy/blink.cmp/ |
Beta Was this translation helpful? Give feedback.
0 replies
-
You're probably using the latest tagged version of If you want more control over rendering in that version you'd have to use a function, not a table. I believe the code that handles this is here. Alternatively, you could use the latest version of |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
OneOfOne
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're probably using the latest tagged version of
blink.cmp
(0.5.1) which seems to have a different configuration API fordraw
.If you want more control over rendering in that version you'd have to use a function, not a table. I believe the code that handles this is here. Alternatively, you could use the latest version of
blink.cmp
frommain
.