Skip to content

Commit

Permalink
fix: disable vim-sleuth for Noice buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Oct 29, 2022
1 parent 7e3e958 commit d148e1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lua/noice/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,6 @@ function M.check(opts)
end

if Config.is_running() then
if vim.g.loaded_sleuth == 1 then
log.warn("`vim-sleuth` is known to cause issues with the Noice popupmenu.")
end

---@type {opt:string[], opt_str?:string, handler:fun(), handler_str:string}
local checks = {
{
Expand Down
4 changes: 4 additions & 0 deletions lua/noice/util/hacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ function M.enable()
M.fix_cmp()
end

function M.fix_vim_sleuth()
vim.g.sleuth_noice_heuristics = 0
end

function M.disable()
M.reset_augroup()
for _, fn in pairs(M._disable) do
Expand Down

0 comments on commit d148e1a

Please sign in to comment.