fix(indent): dont redraw when list/shiftwidth/listchars change. Triggered way too often. Fixes #613. Closes #627

This commit is contained in:
Folke Lemaitre 2025-01-19 10:48:56 +01:00
parent 38952a3e3b
commit d212e3c990
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -526,13 +526,13 @@ function M.enable()
})
-- redraw when shiftwidth changes
vim.api.nvim_create_autocmd("OptionSet", {
group = group,
pattern = { "shiftwidth", "listchars", "list" },
callback = vim.schedule_wrap(function()
vim.cmd([[redraw!]])
end),
})
-- vim.api.nvim_create_autocmd("OptionSet", {
-- group = group,
-- pattern = { "shiftwidth", "listchars", "list" },
-- callback = vim.schedule_wrap(function()
-- vim.cmd([[redraw!]])
-- end),
-- })
end
-- Disable indent guides