From c1591dfc8e2177402eff82be5c9cddc72de28c16 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 25 Oct 2023 12:11:04 +0200 Subject: [PATCH] fix: set conceallevel local. Fixes #634 --- lua/noice/util/hacks.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/noice/util/hacks.lua b/lua/noice/util/hacks.lua index 9db9395..e8e8029 100644 --- a/lua/noice/util/hacks.lua +++ b/lua/noice/util/hacks.lua @@ -67,7 +67,7 @@ function M.fix_incsearch() callback = function(event) if event.match == "/" or event.match == "?" then conceallevel = vim.wo.conceallevel - vim.wo.conceallevel = 0 + vim.opt_local.conceallevel = 0 end end, }) @@ -76,7 +76,7 @@ function M.fix_incsearch() group = M.group, callback = function(event) if conceallevel and (event.match == "/" or event.match == "?") then - vim.wo.conceallevel = conceallevel + vim.opt_local.conceallevel = conceallevel conceallevel = nil end end,