Selaa lähdekoodia

fix compe for latex

Abouzar Parvan 3 vuotta sitten
vanhempi
commit
6aab0ea8ac
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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