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",