feat: add nvim-cmp sources
This commit is contained in:
parent
6f1535f83f
commit
f76948b699
1 changed files with 7 additions and 2 deletions
|
@ -95,7 +95,9 @@ return require('packer').startup(function(use)
|
|||
requires = {
|
||||
"hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-buffer", "hrsh7th/cmp-path",
|
||||
"hrsh7th/cmp-cmdline", "hrsh7th/cmp-git", "hrsh7th/cmp-nvim-lua",
|
||||
"saadparwaiz1/cmp_luasnip"
|
||||
"saadparwaiz1/cmp_luasnip", "hrsh7th/cmp-nvim-lsp-signature-help",
|
||||
"davidsierradz/cmp-conventionalcommits", "hrsh7th/cmp-nvim-lua",
|
||||
"hrsh7th/cmp-calc"
|
||||
},
|
||||
config = function()
|
||||
local has_words_before = function()
|
||||
|
@ -116,7 +118,10 @@ return require('packer').startup(function(use)
|
|||
},
|
||||
sources = require("cmp").config.sources({
|
||||
{name = "nvim_lsp"}, {name = "luasnip"}, {name = "path"},
|
||||
{name = "buffer"}, {name = "git"}
|
||||
{name = "buffer"}, {name = "git"},
|
||||
{name = 'nvim_lsp_signature_help'},
|
||||
{name = "conventionalcommits"}, {name = "nvim-lua"},
|
||||
{name = "calc"}
|
||||
}),
|
||||
mapping = {
|
||||
['<C-Space>'] = cmp.mapping(cmp.mapping.complete(),
|
||||
|
|
Loading…
Reference in a new issue