feat(nvim): add formatting for tabnine

Add completion formatting for the cmp_tabnine source so that its
suggestions are easily identifiable.
This commit is contained in:
Oliver Davies 2021-10-30 12:06:49 +01:00
parent 3c0d75b7e6
commit 506b1d3286

View file

@ -36,6 +36,7 @@ cmp.setup {
formatting = { formatting = {
format = require("lspkind").cmp_format({with_text = true, menu = ({ format = require("lspkind").cmp_format({with_text = true, menu = ({
buffer = "[buf]", buffer = "[buf]",
cmp_tabnine = "[tn]",
luasnip = "[snip]", luasnip = "[snip]",
nvim_lsp = "[lsp]", nvim_lsp = "[lsp]",
nvim_lua = "[lua]", nvim_lua = "[lua]",