Przeglądaj źródła

fix compe for latex

Abouzar Parvan 3 lat temu
rodzic
commit
6aab0ea8ac
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      lua/core/autopairs.lua

+ 1 - 1
lua/core/autopairs.lua

@@ -24,7 +24,7 @@ MUtils.completion_confirm = function()
   end
   end
 end
 end
 
 
-if package.loaded["compe"] then
+if package.loaded["compe"] and vim.bo.filetype ~= "tex" then
   require("nvim-autopairs.completion.compe").setup {
   require("nvim-autopairs.completion.compe").setup {
     map_cr = true, --  map <CR> on insert mode
     map_cr = true, --  map <CR> on insert mode
     map_complete = true, -- it will auto insert `(` after select function or method item
     map_complete = true, -- it will auto insert `(` after select function or method item