瀏覽代碼

fix compe for latex

Abouzar Parvan 3 年之前
父節點
當前提交
6aab0ea8ac
共有 1 個文件被更改,包括 1 次插入1 次删除
  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