Skip to content

Commit

Permalink
fix: watch ft should respect fmt_on_save (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
TwIStOy authored Sep 11, 2023
1 parent 0adf139 commit fc31ce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/guard/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ local function setup(opt)

local lint = require('guard.lint')
for ft, conf in pairs(ft_handler) do
if conf.format then
if conf.format and opt.fmt_on_save then
events.watch_ft(ft)
end

Expand Down

0 comments on commit fc31ce5

Please sign in to comment.