mirror of
https://github.com/tiyn/tidy.nvim.git
synced 2025-10-10 10:11:16 +02:00
fix: check for opts tbl in is_excluded_ft
• problem: attempt to index a nil value err solution: check for opts table before attempting to check if opts table contains anything else Should be considered a temporary fix. Validating the incoming options table should be its own functionality
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
local function is_excluded_ft(opts)
|
local function is_excluded_ft(opts)
|
||||||
if not opts.filetype_exclude then
|
if not opts or not opts.filetype_exclude then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user