summaryrefslogtreecommitdiff
path: root/lua/aotrix
diff options
context:
space:
mode:
Diffstat (limited to 'lua/aotrix')
-rw-r--r--lua/aotrix/personal_commands.lua6
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
}