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
This commit is contained in:
Pham Huy Hoang 2023-01-02 12:15:31 +09:00 committed by Sidhanth Rathod
parent ddeba3c01b
commit ae68290e1f

View File

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