From 24f35b8d92ef0f049e392a15fb9f249ec1fdf4e5 Mon Sep 17 00:00:00 2001 From: Aotrix <9aotrix@protonmail.com> Date: Mon, 15 Jun 2026 19:45:37 +0200 Subject: [test] Create json object in 'AddCommand' body --- lua/aotrix/build.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lua/aotrix') diff --git a/lua/aotrix/build.lua b/lua/aotrix/build.lua index 8408814..605b736 100644 --- a/lua/aotrix/build.lua +++ b/lua/aotrix/build.lua @@ -19,9 +19,11 @@ end local COMMANDS = {} local personalCommands = require("aotrix.personal_commands") -COMMANDS.AddTempCommand = { +COMMANDS.AddCommand = { command = function() CURRENT_COMMAND = personalCommands.createCommand(COMMANDS).command + encoded_json = vim.json.encode({first_element = 1, second_element = 2}) + print(encoded_json) return CURRENT_COMMAND() end, description = function() return "Add temporary command" end @@ -57,3 +59,4 @@ vim.keymap.set("n", "mC", function() selectCommand(COMMANDS, function() executeCommandInTerminal(CURRENT_COMMAND) end) end) + -- cgit v1.2.3