feat: add nvim-cmp sources

This commit is contained in:
mandlm 2022-04-04 19:52:02 +02:00
parent 6f1535f83f
commit f76948b699
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7

View File

@ -95,7 +95,9 @@ return require('packer').startup(function(use)
requires = { requires = {
"hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-buffer", "hrsh7th/cmp-path", "hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-buffer", "hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline", "hrsh7th/cmp-git", "hrsh7th/cmp-nvim-lua", "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() config = function()
local has_words_before = function() local has_words_before = function()
@ -116,7 +118,10 @@ return require('packer').startup(function(use)
}, },
sources = require("cmp").config.sources({ sources = require("cmp").config.sources({
{name = "nvim_lsp"}, {name = "luasnip"}, {name = "path"}, {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 = { mapping = {
['<C-Space>'] = cmp.mapping(cmp.mapping.complete(), ['<C-Space>'] = cmp.mapping(cmp.mapping.complete(),