fix missing opts for plugin initialization
This commit is contained in:
@ -21,14 +21,11 @@ return {
|
|||||||
highlight_grey = "LineNr",
|
highlight_grey = "LineNr",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
config = function ()
|
config = function(_, opts)
|
||||||
require("nvim-autopairs").setup()
|
require("nvim-autopairs").setup(opts)
|
||||||
-- require ("nvim-autopairs.completion.cmp")
|
|
||||||
-- local cmp_status_ok, cmp = pcall(require, "cmp")
|
local cmp_autopairs = require("nvim-autopairs.completion.cmp")
|
||||||
-- if not cmp_status_ok then
|
local cmp = require "cmp"
|
||||||
-- return
|
cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done { map_char = { tex = "" } })
|
||||||
-- end
|
|
||||||
-- cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done { map_char = { tex = "" } })
|
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
return {
|
return {
|
||||||
"petertriho/nvim-scrollbar",
|
"petertriho/nvim-scrollbar",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
config = true
|
config = function (_, opts)
|
||||||
|
require("scrollbar").setup(opts)
|
||||||
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,9 +1,11 @@
|
|||||||
return {
|
return {
|
||||||
{ "L3MON4D3/LuaSnip", event = "VeryLazy" }, --snippet engine
|
|
||||||
{ "rafamadriz/friendly-snippets", event = "VeryLazy" }, -- a bunch of snippets to use
|
|
||||||
{
|
{
|
||||||
"dsznajder/vscode-es7-javascript-react-snippets",
|
"L3MON4D3/LuaSnip",
|
||||||
run = "yarn install --frozen-lockfile && yarn compile",
|
event = "VeryLazy",
|
||||||
event = "VeryLazy"
|
config = true,
|
||||||
},
|
dependencies = {
|
||||||
|
"rafamadriz/friendly-snippets",
|
||||||
|
-- "dsznajder/vscode-es7-javascript-react-snippets",
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user