Skip to content

Commit

Permalink
fix: set conceallevel local. Fixes #634
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 25, 2023
1 parent 50fc77b commit c1591df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/noice/util/hacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand All @@ -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,
Expand Down

0 comments on commit c1591df

Please sign in to comment.