fix missing opts for plugin initialization
This commit is contained in:
@ -21,14 +21,11 @@ return {
|
||||
highlight_grey = "LineNr",
|
||||
},
|
||||
},
|
||||
config = function ()
|
||||
require("nvim-autopairs").setup()
|
||||
-- require ("nvim-autopairs.completion.cmp")
|
||||
-- local cmp_status_ok, cmp = pcall(require, "cmp")
|
||||
-- if not cmp_status_ok then
|
||||
-- return
|
||||
-- end
|
||||
-- cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done { map_char = { tex = "" } })
|
||||
config = function(_, opts)
|
||||
require("nvim-autopairs").setup(opts)
|
||||
|
||||
local cmp_autopairs = require("nvim-autopairs.completion.cmp")
|
||||
local cmp = require "cmp"
|
||||
cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done { map_char = { tex = "" } })
|
||||
end
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user