refactored and switched to config with packer
This commit is contained in:
1 parent
efece83eb8
commit
f5b6ec34ad
19 files changed
+325
-259
No files matched your search
@@ -0,0 +1,22 @@
|
||||
local cmp = require 'cmp'
|
||||
cmp.setup({
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
require('luasnip').lsp_expand(args.body)
|
||||
end
|
||||
},
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
||||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||
['<c-space>'] = cmp.mapping.complete(),
|
||||
['<c-e>'] = cmp.mapping.abort(),
|
||||
['<cr>'] = cmp.mapping.confirm({ select = true }),
|
||||
['<tab>'] = cmp.mapping.select_next_item(),
|
||||
}),
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = 'luasnip' },
|
||||
{ name = 'path' },
|
||||
}),
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user