From 2e0d35c2d999de96684927d6c7971e55293a2176 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Sat, 14 Sep 2024 12:48:33 +0200 Subject: [PATCH] Fix ultisnips cmp problem --- lua/code-completion.lua | 4 ++-- lua/plugins.lua | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lua/code-completion.lua b/lua/code-completion.lua index 554facf..ea2d756 100644 --- a/lua/code-completion.lua +++ b/lua/code-completion.lua @@ -59,7 +59,7 @@ cmp.setup({ { name = "calc" }, { name = "lua-latex-symbols", option = { cache = true } }, { name = "cmp_tabnine", keyword_length = 20 }, - { name = "fuzzy_buffer", keyword_length = 4 }, + -- { name = "fuzzy_buffer", keyword_length = 4 }, }), -- add formatting of the different sources @@ -67,7 +67,7 @@ cmp.setup({ fields = { "menu", "abbr", "kind" }, format = function(entry, item) local menu_icon = { - ultisnips = ">", + ultisnips = "Φ", nvim_lsp = "λ", path = "󰴠", calc = "Σ", diff --git a/lua/plugins.lua b/lua/plugins.lua index b4dbf3b..5578c69 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -51,6 +51,7 @@ return { "amarakon/nvim-cmp-lua-latex-symbols", "f3fora/cmp-spell", { "tzachar/cmp-fuzzy-buffer", requires = { "hrsh7th/nvim-cmp", "tzachar/fuzzy.nvim" } }, + "quangnguyen30192/cmp-nvim-ultisnips", "williamboman/mason.nvim", "williamboman/mason-lspconfig.nvim", "neovim/nvim-lspconfig", @@ -59,14 +60,11 @@ return { "mg979/vim-visual-multi", { "nvim-telescope/telescope-fzf-native.nvim", run = "make" }, { "tzachar/fuzzy.nvim", requires = { "nvim-telescope/telescope-fzf-native.nvim" } }, - { "tzachar/cmp-fuzzy-buffer", requires = { "hrsh7th/nvim-cmp", "tzachar/fuzzy.nvim" } }, "mihaifm/bufstop", "https://git.nickr.eu/yannickreiss/nvim-sourcer.git", - { "tzachar/cmp-fuzzy-buffer", requires = { "hrsh7th/nvim-cmp", "tzachar/fuzzy.nvim" } }, "jaredgorski/spacecamp", "voldikss/vim-floaterm", "dense-analysis/ale", { "TamaMcGlinn/nvim-lspconfig-ada" }, - "krischik/vim-ada", "preservim/tagbar", }