diff options
| author | Aotrix <[email protected]> | 2026-06-03 21:02:19 +0200 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-06-03 21:02:19 +0200 |
| commit | 1f0ab79a26a3bfc396f8fa09a1acda0df2d2fec3 (patch) | |
| tree | e9de139009b6797da4d3fe507c19828a96688dc8 /lua/aotrix/personal_commands.lua | |
| parent | 9a6d1d677283ce759d0317efffa0451d57737ffe (diff) | |
Create temporary command
Diffstat (limited to 'lua/aotrix/personal_commands.lua')
| -rw-r--r-- | lua/aotrix/personal_commands.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lua/aotrix/personal_commands.lua b/lua/aotrix/personal_commands.lua index ac1b038..e1094d5 100644 --- a/lua/aotrix/personal_commands.lua +++ b/lua/aotrix/personal_commands.lua @@ -1,9 +1,11 @@ return { createCommand = function(COMMANDS) + local selectedCommand = vim.fn.input('Enter a command: ') + local selectedDescription = "Say a nice word" COMMANDS.Flower = { - command = "echo 'coucou'", - description = "Say a nice word" + command = function() return selectedCommand end, + description = function() return selectedDescription end } - return COMMANDS.Flower.command + return COMMANDS.Flower.command() end } |
