dotfiles/roles/neovim/files/after/plugin/autopairs.lua

20 lines
370 B
Lua
Raw Normal View History

2022-01-05 00:21:27 +00:00
local status_ok, autopairs = pcall(require, "nvim-autopairs")
if not status_ok then
return
end
autopairs.setup {}
local cmp_status_ok, cmp_autopairs = pcall(require, "nvim-autopairs.completion.cmp")
if not cmp_status_ok then
return
end
2022-01-09 00:07:35 +00:00
local cmp = require "cmp"
cmp.event:on(
"confirm_done",
cmp_autopairs.on_confirm_done {
map_char = { tex = "" },
}
)