mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-03 18:28:38 +00:00
fix(indent): dont redraw when list/shiftwidth/listchars change. Triggered way too often. Fixes #613. Closes #627
This commit is contained in:
parent
38952a3e3b
commit
d212e3c990
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue