From 12509903a5723a876abd65953109f926f4634c30 Mon Sep 17 00:00:00 2001 From: abeldekat <58370433+abeldekat@users.noreply.github.com> Date: Thu, 23 Jan 2025 07:22:37 +0000 Subject: [PATCH] fix: Outdated completion item with mini.snippets (#2126) * fix: Outdated completion item with mini.snippets * fix: Outdated completion item with mini.snippets. Prevent completion suggestions directly after snippet expand * fix: Outdated completion item with mini.snippets. Undo changes * fix: Outdated completion item with mini.snippets. The cmp.resubscribe solution --------- Co-authored-by: abeldekat --- README.md | 10 ++++++++++ doc/cmp.txt | 10 ++++++++++ lua/cmp/init.lua | 6 ++++++ lua/cmp/utils/autocmd.lua | 38 +++++++++++++++++++++++++++++++------- 4 files changed, 57 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index fcbaf5e..1f534d6 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,10 @@ Plug 'hrsh7th/vim-vsnip' " Plug 'L3MON4D3/LuaSnip' " Plug 'saadparwaiz1/cmp_luasnip' +" For mini.snippets users. +" Plug 'echasnovski/mini.snippets' +" Plug 'abeldekat/cmp-mini-snippets' + " For ultisnips users. " Plug 'SirVer/ultisnips' " Plug 'quangnguyen30192/cmp-nvim-ultisnips' @@ -69,6 +73,12 @@ lua <