소스 검색

better compe support for latex

Abouzar Parvan 3 년 전
부모
커밋
1484e05682
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      lua/core/autopairs.lua

+ 3 - 2
lua/core/autopairs.lua

@@ -24,10 +24,11 @@ MUtils.completion_confirm = function()
   end
 end
 
-if package.loaded["compe"] and vim.bo.filetype ~= "tex" then
+if package.loaded["compe"] then
+  local map_complete_optional = vim.bo.filetype ~= "tex"
   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
+    map_complete = map_complete_optional, -- it will auto insert `(` after select function or method item
   }
 end