mirror of
https://github.com/tiyn/tidy.nvim.git
synced 2025-06-16 12:07:46 +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:
parent
e60190f0ca
commit
3d6f0c7d9f
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user