summaryrefslogtreecommitdiff
path: root/lua/core/autopairs.lua
diff options
context:
space:
mode:
authorAbouzar Parvan <[email protected]>2021-08-08 13:26:33 +0430
committerGitHub <[email protected]>2021-08-08 13:26:33 +0430
commit6aab0ea8ac6948fb75dd1a68c0aa07e8ccf2b8ff (patch)
treee96d1e70f47fb4d119588b092e887a80b7635152 /lua/core/autopairs.lua
parent01f865e04100439fbb0c4e705a3332f7f71229b6 (diff)
fix compe for latex
Diffstat (limited to 'lua/core/autopairs.lua')
-rw-r--r--lua/core/autopairs.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/core/autopairs.lua b/lua/core/autopairs.lua
index f0111db6..751e47df 100644
--- a/lua/core/autopairs.lua
+++ b/lua/core/autopairs.lua
@@ -24,7 +24,7 @@ MUtils.completion_confirm = function()
end
end
-if package.loaded["compe"] then
+if package.loaded["compe"] and vim.bo.filetype ~= "tex" then
require("nvim-autopairs.completion.compe").setup {
map_cr = true, -- map <CR> on insert mode
map_complete = true, -- it will auto insert `(` after select function or method item