feat: add nvim-cmp sources
This commit is contained in:
parent
6f1535f83f
commit
f76948b699
@ -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(),
|
||||||
|
Reference in New Issue
Block a user