Feat: change loading method and disable in telescope and vim

This commit is contained in:
Bertrand Benjamin 2022-08-20 05:58:07 +02:00
parent 46a53b7c38
commit 171c63a070
1 changed files with 4 additions and 5 deletions

View File

@ -1,9 +1,8 @@
local autopairs_status_ok, autopairs = pcall(require, "nvim-autopairs")
if not autopairs_status_ok then
return
end
local status, autopairs = pcall(require, "nvim-autopairs")
if (not status) then return end
autopairs.setup{
ignored_next_char = string.gsub([[ [%w%%%'%[%"%.] ]],"%s+", ""),
disable_filetype = { "TelescopePrompt" , "vim" },
ignored_next_char = string.gsub([[ [%w%%%'%[%"%.] ]],"%s+", ""),
}