-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Announcement: Breaking changes #231
Comments
Use floating window instead of native menu #224The user must change the configuration as the following. Change feeding You should change the configuration. cmp.setup {
mapping = {
['<Tab>'] = function(fallback)
if vim.fn.pumvisible() == 1 then
vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes('<C-n>', true, true, true), true)
else
fallback()
end
end
}
} ↓↓↓ cmp.setup {
mapping = {
['<Tab>'] = function(fallback)
if cmp.visible() then
cmp.select_next_item()
else
fallback()
end
end
}
} |
SourceConfig.opts is deprecated #561cmp.setup {
sources = {
{
name = 'buffer',
opts = {
get_bufnrs = function() return { vim.api.nvim_get_current_buf() } end
}
}
}
} ↓↓↓ cmp.setup {
sources = {
{
name = 'buffer',
option = {
get_bufnrs = function() return { vim.api.nvim_get_current_buf() } end
}
}
}
} |
The
|
The
|
Remove
|
Remove
|
Remove all default key mappings (workaround is existing)All key mappings have been removed by 93cf84f. If you want to achieve the previous behavior, you can use the built-in helper as below. cmp.setup {
...
mapping = cmp.mapping.preset.insert({
-- Your configuration here.
})
...
}
cmp.setup.cmdline {
...
mapping = cmp.mapping.preset.cmdline({
-- Your configuration here.
})
...
} |
nvim-cmp will only work on nvim v0.7.x or higher.status: applied The nvim v0.7.0 contains the
Related |
source[n].max_item_count is removedThis is minor breaking change. Now |
No description provided.
The text was updated successfully, but these errors were encountered: