From b1698fb7cfa9531898030666f379262107b50eb1 Mon Sep 17 00:00:00 2001 From: Laily Date: Thu, 22 Feb 2024 20:26:43 +0800 Subject: [PATCH] fix: update telegraf --- nvim/lazy-lock.json | 2 ++ nvim/lua/plugins/nvim-cmp.lua | 23 ++++++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index 31955f1..eea79e7 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -63,5 +63,7 @@ "trouble.nvim": { "branch": "main", "commit": "f1168feada93c0154ede4d1fe9183bf69bac54ea" }, "vim-illuminate": { "branch": "master", "commit": "305bf07b919ac526deb5193280379e2f8b599926" }, "vim-startuptime": { "branch": "master", "commit": "308b0088a864c4711a96e45b6734cf9294074f65" }, + "vim-vsnip": { "branch": "master", "commit": "02a8e79295c9733434aab4e0e2b8c4b7cea9f3a9" }, + "vim-vsnip-integ": { "branch": "master", "commit": "1914e72cf3de70df7f5dde476cd299aba2440aef" }, "which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" } } \ No newline at end of file diff --git a/nvim/lua/plugins/nvim-cmp.lua b/nvim/lua/plugins/nvim-cmp.lua index c09dd5c..9962806 100644 --- a/nvim/lua/plugins/nvim-cmp.lua +++ b/nvim/lua/plugins/nvim-cmp.lua @@ -60,17 +60,14 @@ local function opts_func (_, opts) }), snippet = { expand = function(args) - -- For `vsnip` users. + -- For `vsnip` users. vim.fn["vsnip#anonymous"](args.body) - - -- For `luasnip` users. - -- require('luasnip').lsp_expand(args.body) - - -- For `ultisnips` users. - -- vim.fn["UltiSnips#Anon"](args.body) - - -- For `snippy` users. - -- require'snippy'.expand_snippet(args.body) + -- -- For `luasnip` users. + -- -- require('luasnip').lsp_expand(args.body) + -- -- For `ultisnips` users. + -- -- vim.fn["UltiSnips#Anon"](args.body) + -- -- For `snippy` users. + -- -- require'snippy'.expand_snippet(args.body) end, }, } @@ -79,7 +76,11 @@ end return { { "nvim-cmp", - dependencies = { "hrsh7th/cmp-emoji" }, + dependencies = { + "hrsh7th/cmp-emoji", + 'hrsh7th/vim-vsnip', + 'hrsh7th/vim-vsnip-integ', + }, opts = opts_func, }, } \ No newline at end of file