-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d0ba8c5
commit 0e28f3b
Showing
7 changed files
with
212 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
local M = {} | ||
|
||
local variable_map = {} | ||
|
||
---comment | ||
---@param key string | ||
---@param value table | ||
M.store_value = function(key, value) | ||
local json_string = table.concat(value, "\n") | ||
local decoded_json = vim.json.decode(json_string) | ||
variable_map[key] = decoded_json | ||
end | ||
|
||
M.get_value = function(key) | ||
return variable_map[key] | ||
end | ||
return M |
Oops, something went wrong.