Explorar o código

fix compe for latex

Abouzar Parvan %!s(int64=3) %!d(string=hai) anos
pai
achega
6aab0ea8ac
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lua/core/autopairs.lua

+ 1 - 1
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