summaryrefslogtreecommitdiff
path: root/lua/aotrix
diff options
context:
space:
mode:
authorAotrix <[email protected]>2026-06-15 19:45:37 +0200
committerAotrix <[email protected]>2026-06-15 19:45:37 +0200
commit24f35b8d92ef0f049e392a15fb9f249ec1fdf4e5 (patch)
tree9908fca44d45215b020b96d140cc08b189676961 /lua/aotrix
parentd462709d217f0dbd6c8d1cad8342115c944af73a (diff)
[test] Create json object in 'AddCommand' body
Diffstat (limited to 'lua/aotrix')
-rw-r--r--lua/aotrix/build.lua5
1 files changed, 4 insertions, 1 deletions
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)
+