mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 05:20:38 +00:00
lazy load luasnip after cmp
This commit is contained in:
parent
647c3730ae
commit
c87482f107
2 changed files with 11 additions and 12 deletions
|
@ -1,10 +1,9 @@
|
||||||
vim.opt.completeopt = "menuone,noselect"
|
vim.opt.completeopt = "menuone,noselect"
|
||||||
|
|
||||||
local lspkind = require "plugins.configs.lspkind_icons"
|
local lspkind = require "plugins.configs.lspkind_icons"
|
||||||
local luasnip = require "luasnip"
|
local cmp = require "cmp"
|
||||||
|
|
||||||
-- nvim-cmp setup
|
-- nvim-cmp setup
|
||||||
local cmp = require "cmp"
|
|
||||||
cmp.setup {
|
cmp.setup {
|
||||||
snippet = {
|
snippet = {
|
||||||
expand = function(args)
|
expand = function(args)
|
||||||
|
|
|
@ -176,25 +176,25 @@ return packer.startup(function()
|
||||||
-- load luasnips + cmp related in insert mode only
|
-- load luasnips + cmp related in insert mode only
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"L3MON4D3/LuaSnip",
|
"hrsh7th/nvim-cmp",
|
||||||
event = "InsertEnter",
|
event = "InsertEnter",
|
||||||
|
config = function()
|
||||||
|
require "plugins.configs.cmp"
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
use {
|
||||||
|
"L3MON4D3/LuaSnip",
|
||||||
wants = "friendly-snippets",
|
wants = "friendly-snippets",
|
||||||
|
after = "nvim-cmp",
|
||||||
config = function()
|
config = function()
|
||||||
require "plugins.configs.luasnip"
|
require "plugins.configs.luasnip"
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
use {
|
|
||||||
"hrsh7th/nvim-cmp",
|
|
||||||
config = function()
|
|
||||||
require "plugins.configs.cmp"
|
|
||||||
end,
|
|
||||||
after = "LuaSnip",
|
|
||||||
}
|
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"saadparwaiz1/cmp_luasnip",
|
"saadparwaiz1/cmp_luasnip",
|
||||||
after = "nvim-cmp",
|
after = "LuaSnip",
|
||||||
}
|
}
|
||||||
|
|
||||||
use {
|
use {
|
||||||
|
|
Loading…
Reference in a new issue