From ae68290e1fd6a62588db83c3ba670e6a86d54408 Mon Sep 17 00:00:00 2001 From: Pham Huy Hoang Date: Mon, 2 Jan 2023 12:15:31 +0900 Subject: [PATCH] Move friendly-snippets to start There is no reason to lazy load this plugin as there is no lua file Move it to start to simply loading sequence --- lua/plugins/init.lua | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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()