Sometimes you might want to preserve whitespace in a one-off instance where it doesn't make sense to add a certain filetype to filetype_exclude. In these cases, you can now use require('tidy').toggle() to toggle its functionality on or off.
vim.b.tidy_enabled is also added in case you want to disable functionality on a per-buffer basis.
Sometimes you might want to preserve whitespace in a one-off instance where it doesn't make sense to add a certain filetype to
filetype_exclude
. In these cases, you can now userequire('tidy').toggle()
to toggle its functionality on or off.vim.b.tidy_enabled
is also added in case you want to disable functionality on a per-buffer basis.