fix compe for latex

This commit is contained in:
Abouzar Parvan 2021-08-08 13:26:33 +04:30 committed by GitHub
parent 01f865e041
commit 6aab0ea8ac
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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