From fd96f4ddbd9c1706e1273905959d2f9dcef9bb7c Mon Sep 17 00:00:00 2001 From: siduck Date: Mon, 30 May 2022 12:16:18 +0530 Subject: [PATCH] make autopairs overridable | fix (#1154) --- lua/plugins/configs/others.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/plugins/configs/others.lua b/lua/plugins/configs/others.lua index e44ee32..ee76225 100644 --- a/lua/plugins/configs/others.lua +++ b/lua/plugins/configs/others.lua @@ -10,11 +10,14 @@ M.autopairs = function() return end - autopairs.setup { + local options = { fast_wrap = {}, disable_filetype = { "TelescopePrompt", "vim" }, } + options = load_override(options, "windwp/nvim-autopairs") + autopairs.setup(options) + local cmp_autopairs = require "nvim-autopairs.completion.cmp" cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done())