This commit is contained in:
Till 2023-05-16 15:11:21 +02:00
parent 52f9b876b5
commit e40cd3e583
10 changed files with 133 additions and 25 deletions

View file

@ -1,6 +1,5 @@
lua <<EOF
local cmp = require'cmp'
cmp.setup({
snippet = {
expand = function(args)
@ -20,22 +19,21 @@ lua <<EOF
}),
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
{ name = 'ultisnips' }, -- For ultisnips users.
{ name = 'ultisnips' },
{ name = 'emoji' },
}, {
{ name = 'buffer' },
})
})
-- Set configuration for specific filetype.
cmp.setup.filetype('gitcommit', {
sources = cmp.config.sources({
{ name = 'cmp_git' }, -- You can specify the `cmp_git` source if you were installed it.
{ name = 'cmp_git' },
}, {
{ name = 'buffer' },
})
})
-- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline({ '/', '?' }, {
mapping = cmp.mapping.preset.cmdline(),
sources = {