load friendly-snippets before nvim-cmp

This commit is contained in:
siduck76 2021-09-07 07:07:39 +05:30
parent 0fece65c3f
commit d1777dfbdf
1 changed files with 6 additions and 6 deletions

View File

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