Still no ultisnips in cmp

This commit is contained in:
2024-09-09 08:21:29 +02:00
parent 859311d0ee
commit a1cffcf7e9
3 changed files with 23 additions and 19 deletions

View File

@@ -11,7 +11,7 @@ cmp.setup({
-- configuration
snippet = {
expand = function(args)
-- vim.fn["UltiSnips#Anon"](args.body)
vim.fn["UltiSnips#Anon"](args.body)
end,
},
@@ -50,7 +50,7 @@ cmp.setup({
-- installed sources for code suggestion
sources = cmp.config.sources({
-- { name = "ultisnips", keyword_length = 1 },
{ name = "ultisnips", keyword_length = 1 },
{ name = "path" },
{ name = "nvim_lsp", keyword_length = 2 },
{ name = "nvim_lsp_signature_help" },
@@ -67,6 +67,7 @@ cmp.setup({
fields = { "menu", "abbr", "kind" },
format = function(entry, item)
local menu_icon = {
ultisnips = ">",
nvim_lsp = "λ",
path = "󰴠",
calc = "Σ",