1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

add plugin cmp-buffer

This commit is contained in:
jdhao 2021-10-23 17:40:38 +08:00
parent 9d40dce70e
commit 9a5318c0e1
2 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,7 @@ cmp.setup({
{ name = 'ultisnips' }, -- For ultisnips user.
{ name = 'nvim_lua' }, -- for nvim lua function
{ name = 'path' }, -- for path completion
{ name = 'buffer', keyword_length = 4 }, -- for buffer word completion
{ name = 'emoji', insert = true, } -- emoji completion
},
completion = {
@ -51,6 +52,7 @@ cmp.setup({
ultisnips = "[US]",
nvim_lua = "[Lua]",
path = "[Path]",
buffer = "[Buffer]",
emoji = "[Emoji]",
},
}),

View File

@ -39,6 +39,7 @@ require("packer").startup({
use {"hrsh7th/cmp-nvim-lua", after = "nvim-cmp"}
use {"hrsh7th/cmp-path", after = "nvim-cmp"}
use {"hrsh7th/cmp-buffer", after = "nvim-cmp"}
use {"quangnguyen30192/cmp-nvim-ultisnips", after = {'nvim-cmp', 'ultisnips'}}
if vim.g.is_mac then
use {"hrsh7th/cmp-emoji", after = 'nvim-cmp'}