diff options
| author | Aotrix <[email protected]> | 2026-06-15 19:45:37 +0200 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-06-15 19:45:37 +0200 |
| commit | 24f35b8d92ef0f049e392a15fb9f249ec1fdf4e5 (patch) | |
| tree | 9908fca44d45215b020b96d140cc08b189676961 /lua/aotrix | |
| parent | d462709d217f0dbd6c8d1cad8342115c944af73a (diff) | |
[test] Create json object in 'AddCommand' body
Diffstat (limited to 'lua/aotrix')
| -rw-r--r-- | lua/aotrix/build.lua | 5 |
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) + |
