diff options
| author | Aotrix <[email protected]> | 2026-06-15 22:02:41 +0200 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-06-15 22:02:41 +0200 |
| commit | b45495e1683223046df881e93de4a86ef23dc16d (patch) | |
| tree | bc139a1981cb1d96f6ddd7e80fd32b28e7a5cca0 /lua/aotrix | |
| parent | dfecbd6e4ee2594a5b7c72552bb04c135c33a417 (diff) | |
Add more than one command
Diffstat (limited to 'lua/aotrix')
| -rw-r--r-- | lua/aotrix/personal_commands.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/aotrix/personal_commands.lua b/lua/aotrix/personal_commands.lua index 16364d2..dd1b586 100644 --- a/lua/aotrix/personal_commands.lua +++ b/lua/aotrix/personal_commands.lua @@ -1,11 +1,11 @@ return { createCommand = function(COMMANDS) local selectedCommand = vim.fn.input('Enter a command: ') - local selectedDescription = "Say a nice word" - COMMANDS.Flower = { + local selectedDescription = vim.fn.input('Name the command: ') + COMMANDS[selectedDescription] = { command = function() return selectedCommand end, description = function() return selectedDescription end } - return COMMANDS.Flower + return COMMANDS[selectedDescription] end } |
