diff options
author | Abouzar Parvan <[email protected]> | 2021-08-08 20:51:24 +0430 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-08 20:51:24 +0430 |
commit | 1484e056827080ed7946e7e664e11eedccd8a6f9 (patch) | |
tree | 1e5165e0cfaddd941632c44a18b91a361d7137cf /lua/core/autopairs.lua | |
parent | 6aab0ea8ac6948fb75dd1a68c0aa07e8ccf2b8ff (diff) |
better compe support for latex
Diffstat (limited to 'lua/core/autopairs.lua')
-rw-r--r-- | lua/core/autopairs.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/core/autopairs.lua b/lua/core/autopairs.lua index 751e47df..f989864f 100644 --- a/lua/core/autopairs.lua +++ b/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 |