Feat: change loading method and disable in telescope and vim
This commit is contained in:
parent
46a53b7c38
commit
171c63a070
@ -1,9 +1,8 @@
|
|||||||
local autopairs_status_ok, autopairs = pcall(require, "nvim-autopairs")
|
local status, autopairs = pcall(require, "nvim-autopairs")
|
||||||
if not autopairs_status_ok then
|
if (not status) then return end
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
autopairs.setup{
|
autopairs.setup{
|
||||||
ignored_next_char = string.gsub([[ [%w%%%'%[%"%.] ]],"%s+", ""),
|
disable_filetype = { "TelescopePrompt" , "vim" },
|
||||||
|
ignored_next_char = string.gsub([[ [%w%%%'%[%"%.] ]],"%s+", ""),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user