mirror of
https://github.com/webgefrickel/dotfiles
synced 2024-11-17 09:25:52 +00:00
Fix cmp-mappings after breaking update
This commit is contained in:
parent
80af144c3e
commit
9ac95fc018
@ -9,10 +9,11 @@ cmp.setup({
|
||||
vim.fn["vsnip#anonymous"](args.body)
|
||||
end
|
||||
},
|
||||
mapping = {
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
['<cr>'] = cmp.mapping.confirm({ select = true }),
|
||||
},
|
||||
}),
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'nvim_lsp' },
|
||||
{
|
||||
name = 'buffer',
|
||||
option = {
|
||||
@ -21,7 +22,6 @@ cmp.setup({
|
||||
end
|
||||
},
|
||||
},
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = 'path' },
|
||||
{ name = 'vsnip' },
|
||||
{ name = 'tmux', option = { all_panes = true } },
|
||||
@ -30,8 +30,8 @@ cmp.setup({
|
||||
formatting = {
|
||||
format = function(entry, vim_item)
|
||||
vim_item.menu = ({
|
||||
buffer = "[Buffer]",
|
||||
nvim_lsp = "[LSP]",
|
||||
buffer = "[Buffer]",
|
||||
path = "[Path]",
|
||||
vsnip = "[Snippet]",
|
||||
tmux = "[tmux]",
|
||||
@ -43,12 +43,14 @@ cmp.setup({
|
||||
})
|
||||
|
||||
cmp.setup.cmdline(':', {
|
||||
mapping = cmp.mapping.preset.cmdline({}),
|
||||
sources = {
|
||||
{ name = 'cmdline' }
|
||||
}
|
||||
})
|
||||
|
||||
cmp.setup.cmdline('/', {
|
||||
mapping = cmp.mapping.preset.cmdline({}),
|
||||
sources = {
|
||||
{ name = 'buffer' }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user