feat(nvim): add cmp formatting
This commit is contained in:
parent
6c75b2ce66
commit
9654f7d095
|
@ -32,4 +32,14 @@ cmp.setup {
|
||||||
{ name = "luasnip" },
|
{ name = "luasnip" },
|
||||||
{ name = "cmp_tabnine" },
|
{ 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]",
|
||||||
|
})}),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,7 @@ Plug 'hrsh7th/cmp-buffer'
|
||||||
Plug 'hrsh7th/cmp-nvim-lsp'
|
Plug 'hrsh7th/cmp-nvim-lsp'
|
||||||
Plug 'hrsh7th/cmp-path'
|
Plug 'hrsh7th/cmp-path'
|
||||||
Plug 'hrsh7th/nvim-cmp'
|
Plug 'hrsh7th/nvim-cmp'
|
||||||
|
Plug 'onsails/lspkind-nvim'
|
||||||
Plug 'saadparwaiz1/cmp_luasnip'
|
Plug 'saadparwaiz1/cmp_luasnip'
|
||||||
Plug 'tzachar/cmp-tabnine', { 'do': './install.sh' }
|
Plug 'tzachar/cmp-tabnine', { 'do': './install.sh' }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue