chore: update template list check

This commit is contained in:
CoderLambert
2026-05-20 23:35:28 +08:00
parent 1ab1e9a1dc
commit 8e2d4876c9
+2 -2
View File
@@ -48,11 +48,11 @@ local function read_template_file(path)
return {}
end
if vim.tbl_islist(data) then
if vim.islist(data) then
return data
end
if type(data) == "table" and vim.tbl_islist(data.presets or {}) then
if type(data) == "table" and vim.islist(data.presets or {}) then
return data.presets
end