summaryrefslogtreecommitdiff
path: root/lua/99/utils.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/99/utils.lua')
-rw-r--r--lua/99/utils.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/99/utils.lua b/lua/99/utils.lua
index 724b3c6..2a51793 100644
--- a/lua/99/utils.lua
+++ b/lua/99/utils.lua
@@ -50,7 +50,7 @@ function M.read_file_json_safe(path)
if not ok2 then
return nil
end
- local ok3, obj = pcall(vim.json, content)
+ local ok3, obj = pcall(vim.json.decode, content)
if ok3 and obj then
return obj
end