feat(nvim): add cmp formatting

This commit is contained in:
Oliver Davies 2021-10-19 23:05:51 +01:00
parent 6c75b2ce66
commit 9654f7d095
2 changed files with 11 additions and 0 deletions

View file

@ -32,4 +32,14 @@ cmp.setup {
{ name = "luasnip" },
{ name = "cmp_tabnine" },
},
formatting = {
format = require("lspkind").cmp_format({with_text = true, menu = ({
buffer = "[buf]",
luasnip = "[snip]",
nvim_lsp = "[lsp]",
nvim_lua = "[lua]",
path = "[path]",
})}),
},
}

View file

@ -35,6 +35,7 @@ Plug 'hrsh7th/cmp-buffer'
Plug 'hrsh7th/cmp-nvim-lsp'
Plug 'hrsh7th/cmp-path'
Plug 'hrsh7th/nvim-cmp'
Plug 'onsails/lspkind-nvim'
Plug 'saadparwaiz1/cmp_luasnip'
Plug 'tzachar/cmp-tabnine', { 'do': './install.sh' }