diff options
| author | Aotrix <[email protected]> | 2026-06-03 21:42:21 +0200 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-06-03 21:42:21 +0200 |
| commit | d462709d217f0dbd6c8d1cad8342115c944af73a (patch) | |
| tree | 9d24c25207fe71ac4dda865374c06472e9895f96 /lua/aotrix/build.lua | |
| parent | 3dc28117b416261ac366a638c662b4836de1d7e3 (diff) | |
Set current command to the last used
Diffstat (limited to 'lua/aotrix/build.lua')
| -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 96a7f75..8408814 100644 --- a/lua/aotrix/build.lua +++ b/lua/aotrix/build.lua @@ -20,7 +20,10 @@ local COMMANDS = {} local personalCommands = require("aotrix.personal_commands") COMMANDS.AddTempCommand = { - command = function() return personalCommands.createCommand(COMMANDS) end, + command = function() + CURRENT_COMMAND = personalCommands.createCommand(COMMANDS).command + return CURRENT_COMMAND() + end, description = function() return "Add temporary command" end } |
