summaryrefslogtreecommitdiff
path: root/lua/aotrix/build.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/aotrix/build.lua')
-rw-r--r--lua/aotrix/build.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/lua/aotrix/build.lua b/lua/aotrix/build.lua
index ffdfe7d..9fcbed9 100644
--- a/lua/aotrix/build.lua
+++ b/lua/aotrix/build.lua
@@ -38,9 +38,10 @@ function writeJsonToFile(json, filePath)
end
function appendCommandsFromDirectory(commands, directory)
- encoded_json = vim.json.encode({first_element = 1, second_element = 2})
- personal_commands_path = string.format("%s/personal_commands.json",
- data_path)
+ local encoded_json = vim.json
+ .encode({first_element = 1, second_element = 2})
+ local personal_commands_path = string.format("%s/personal_commands.json",
+ data_path)
readJsonFromFile(personal_commands_path)
-- print(readJsonFromFile(personal_commands_path)["first_element"])
writeJsonToFile(encoded_json, personal_commands_path)