소스 검색

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