feat: add nvim-cmp sources

main
mandlm 2022-04-04 19:52:02 +02:00
parent 6f1535f83f
commit f76948b699
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
1 changed files with 7 additions and 2 deletions

View File

@ -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(),