diff options
| author | Aotrix <[email protected]> | 2026-06-03 00:01:32 +0200 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-06-03 00:01:32 +0200 |
| commit | 9a6d1d677283ce759d0317efffa0451d57737ffe (patch) | |
| tree | f08fadafe7e154d10a322a090a7484bea1885cf9 | |
| parent | a19b42cc097ad48dfcea16ffd565ad4f48ec90f9 (diff) | |
Fix custom command script
| -rw-r--r-- | lua/aotrix/build.lua | 2 | ||||
| -rw-r--r-- | lua/aotrix/personal_commands.lua | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lua/aotrix/build.lua b/lua/aotrix/build.lua index 878bb73..c429467 100644 --- a/lua/aotrix/build.lua +++ b/lua/aotrix/build.lua @@ -17,7 +17,7 @@ local COMMANDS = {} local personalCommands = require("aotrix.personal_commands") COMMANDS.AddTempCommand = { - command = function() personalCommands.createCommand(COMMANDS) end, + command = function() return personalCommands.createCommand(COMMANDS) end, description = "Add temporary command" } diff --git a/lua/aotrix/personal_commands.lua b/lua/aotrix/personal_commands.lua new file mode 100644 index 0000000..ac1b038 --- /dev/null +++ b/lua/aotrix/personal_commands.lua @@ -0,0 +1,9 @@ +return { + createCommand = function(COMMANDS) + COMMANDS.Flower = { + command = "echo 'coucou'", + description = "Say a nice word" + } + return COMMANDS.Flower.command + end +} |
