local hasnpairs, npairs = pcall(require, "nvim-autopairs")
if hasnpairs then
npairs.setup {
check_ts = true,
}
npairs.add_rules(require "nvim-autopairs.rules.endwise-lua")
end