diff options
Diffstat (limited to 'lua/lvim/core')
-rw-r--r-- | lua/lvim/core/autocmds.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/lvim/core/autocmds.lua b/lua/lvim/core/autocmds.lua index 21c7c1f0..61e3e676 100644 --- a/lua/lvim/core/autocmds.lua +++ b/lua/lvim/core/autocmds.lua @@ -158,7 +158,9 @@ function M.disable_format_on_save() end function M.configure_format_on_save() - if lvim.format_on_save then + if type(lvim.format_on_save) == "table" and lvim.format_on_save.enabled then + M.enable_format_on_save() + elseif lvim.format_on_save == true then M.enable_format_on_save() else M.disable_format_on_save() |