From d1777dfbdfffc252c46b7590f489a4c8834ef545 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Tue, 7 Sep 2021 07:07:39 +0530 Subject: [PATCH] load friendly-snippets before nvim-cmp --- lua/plugins/init.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index f248f28..d146966 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -180,8 +180,13 @@ return packer.startup(function() -- load luasnips + cmp related in insert mode only use { - "hrsh7th/nvim-cmp", + "rafamadriz/friendly-snippets", event = "InsertEnter", + } + + use { + "hrsh7th/nvim-cmp", + after = "friendly-snippets", config = function() require "plugins.configs.cmp" end, @@ -216,11 +221,6 @@ return packer.startup(function() after = "cmp-nvim-lsp", } - use { - "rafamadriz/friendly-snippets", - after = "cmp-buffer", - } - -- misc plugins use { "windwp/nvim-autopairs",