diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 78db45b..d25a583 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -133,20 +133,17 @@ local plugins = { -- load luasnips + cmp related in insert mode only - ["rafamadriz/friendly-snippets"] = { - module = { "cmp", "cmp_nvim_lsp" }, - event = "InsertEnter", - }, + ["rafamadriz/friendly-snippets"] = { }, ["hrsh7th/nvim-cmp"] = { - after = "friendly-snippets", + event = "InsertEnter", config = function() require "plugins.configs.cmp" end, }, ["L3MON4D3/LuaSnip"] = { - wants = "friendly-snippets", + requires = "friendly-snippets", after = "nvim-cmp", config = function() require("plugins.configs.others").luasnip()