From 6aab0ea8ac6948fb75dd1a68c0aa07e8ccf2b8ff Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Sun, 8 Aug 2021 13:26:33 +0430 Subject: fix compe for latex --- lua/core/autopairs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/core/autopairs.lua') diff --git a/lua/core/autopairs.lua b/lua/core/autopairs.lua index f0111db6..751e47df 100644 --- a/lua/core/autopairs.lua +++ b/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 on insert mode map_complete = true, -- it will auto insert `(` after select function or method item -- cgit v1.2.3 From 1484e056827080ed7946e7e664e11eedccd8a6f9 Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Sun, 8 Aug 2021 20:51:24 +0430 Subject: better compe support for latex --- lua/core/autopairs.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lua/core/autopairs.lua') 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 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 -- cgit v1.2.3 From 405423108fc31981c40116a827e845a1179c9053 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Mon, 9 Aug 2021 19:02:37 +0200 Subject: feat: Add an async logger using plenary (#1207) Co-authored-by: rebuilt --- lua/core/autopairs.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lua/core/autopairs.lua') diff --git a/lua/core/autopairs.lua b/lua/core/autopairs.lua index f989864f..a5f21a1b 100644 --- a/lua/core/autopairs.lua +++ b/lua/core/autopairs.lua @@ -1,8 +1,10 @@ -- if not package.loaded['nvim-autopairs'] then -- return -- end +local Log = require "core.log" local status_ok, _ = pcall(require, "nvim-autopairs") if not status_ok then + Log:get_default().error "Failed to load autopairs" return end local npairs = require "nvim-autopairs" -- cgit v1.2.3