load friendly-snippets before nvim-cmp

This commit is contained in:
siduck76 2021-09-07 07:07:39 +05:30
parent 0fece65c3f
commit d1777dfbdf

View File

@ -180,8 +180,13 @@ return packer.startup(function()
-- load luasnips + cmp related in insert mode only -- load luasnips + cmp related in insert mode only
use { use {
"hrsh7th/nvim-cmp", "rafamadriz/friendly-snippets",
event = "InsertEnter", event = "InsertEnter",
}
use {
"hrsh7th/nvim-cmp",
after = "friendly-snippets",
config = function() config = function()
require "plugins.configs.cmp" require "plugins.configs.cmp"
end, end,
@ -216,11 +221,6 @@ return packer.startup(function()
after = "cmp-nvim-lsp", after = "cmp-nvim-lsp",
} }
use {
"rafamadriz/friendly-snippets",
after = "cmp-buffer",
}
-- misc plugins -- misc plugins
use { use {
"windwp/nvim-autopairs", "windwp/nvim-autopairs",