From 6aab0ea8ac6948fb75dd1a68c0aa07e8ccf2b8ff Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Sun, 8 Aug 2021 13:26:33 +0430 Subject: [PATCH] fix compe for latex --- lua/core/autopairs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 on insert mode map_complete = true, -- it will auto insert `(` after select function or method item