From dfecbd6e4ee2594a5b7c72552bb04c135c33a417 Mon Sep 17 00:00:00 2001 From: Aotrix <9aotrix@protonmail.com> Date: Mon, 15 Jun 2026 21:51:59 +0200 Subject: Add local to two variable declarations --- lua/aotrix/build.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lua') 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) -- cgit v1.2.3