You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm trying to make codeium results to be place on the top, and so i found one option maybe can do this, which is fuzzy.sorts, i can pass a function to sort it.
Error executing vim.schedule lua callback: ...l/share/nvim/lazy/blink.cmp/lua/blink/cmp/fuzzy/sort.lua:11: invalid order function for sorting
stack traceback:
[C]: in function 'sort'
...l/share/nvim/lazy/blink.cmp/lua/blink/cmp/fuzzy/sort.lua:11: in function 'fuzzy'
...re/nvim/lazy/blink.cmp/lua/blink/cmp/completion/list.lua:109: in function 'fuzzy'
...re/nvim/lazy/blink.cmp/lua/blink/cmp/completion/list.lua:85: in function 'show'
...re/nvim/lazy/blink.cmp/lua/blink/cmp/completion/init.lua:34: in function <...re/nvim/lazy/blink.cmp/lua/blink/cmp/completion/init.lua:29>
This might seems like a lua related thing not blink's logic:
functionsort.sort(list)
localconfig=require('blink.cmp.config').fuzzy.sortslocalsorting_funcs=vim.tbl_map(
function(name_or_func) returntype(name_or_func) =='string' andsort[name_or_func] orname_or_funcend,
config
)
table.sort(list, function(a, b)
for_, sorting_funcinipairs(sorting_funcs) dolocalresult=sorting_func(a, b)
ifresult~=nilthenreturnresultendendend)
returnlistend
i'm not so deep into lua, and i don't understand why this happens...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i'm trying to make codeium results to be place on the top, and so i found one option maybe can do this, which is
fuzzy.sorts
, i can pass a function to sort it.and i did:
but it raise:
This might seems like a lua related thing not blink's logic:
i'm not so deep into lua, and i don't understand why this happens...
Beta Was this translation helpful? Give feedback.
All reactions