Skip to content

Commit

Permalink
fix: remove hidden dependency on overseer (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Nov 2, 2022
1 parent 1f30aa2 commit 0fb1a53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/resession/files.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
local util = require("overseer.util")
local M = {}

---@type boolean
Expand Down Expand Up @@ -72,7 +71,7 @@ end
M.load_json_file = function(filepath)
local content = M.read_file(filepath)
if content then
return util.decode_json(content)
return vim.json.decode(content, { luanil = { object = true } })
end
end

Expand Down

0 comments on commit 0fb1a53

Please sign in to comment.