diff options
| author | Aotrix <[email protected]> | 2026-06-15 21:51:59 +0200 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-06-15 21:52:26 +0200 |
| commit | dfecbd6e4ee2594a5b7c72552bb04c135c33a417 (patch) | |
| tree | 780afceccfd6c7f2c91560b9e5de3d2b74ad074d /lua/aotrix/build.lua | |
| parent | 8c7c20149ce4f4670879b2f5cd9707575f3d29f4 (diff) | |
Add local to two variable declarations
Diffstat (limited to 'lua/aotrix/build.lua')
| -rw-r--r-- | lua/aotrix/build.lua | 7 |
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) |
