but the completion window said the input word first like
1. overshot
overshoot
Overshot
overshoe
over shot
overshoots
Why does the first one displayed?
my source setting is
-- /////// source of lua
cmp.setup.filetype({'lua'}, {
sources = {
{
name = 'spell',
group_index = 1,
option = {
keep_all_entries = true, -- it can show more possible list
enable_in_context = function () -- is_available() does not work, this option make spell completion work only
return context.in_treesitter_capture('comment') or context.in_syntax_group('Comment')
end
}
},
}
})
@f3fora
It is weird that the order is same with suggestion of spellsuggest() when preselect_correct_word = false.
Anyway, It works for me! Thank you for your commit!
I wanted the completion window to be printed in the same order as the vim.fn.spellsuggest() function. like this.
To see this, I changed the sorting order in config of nvim-cmp like
but the completion window said the input word first like
1. overshot
Why does the first one displayed? my source setting is