diff --git a/lua/tidy/init.lua b/lua/tidy/init.lua index 23a317d..b31c17b 100644 --- a/lua/tidy/init.lua +++ b/lua/tidy/init.lua @@ -1,7 +1,7 @@ local M = {} local function is_excluded_ft(opts) - if not opts.filetype_exclude then + if not opts or not opts.filetype_exclude then return false end