blob: dd1b586ad1e608e754f9e9f2569aa549ad7abc0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
return {
createCommand = function(COMMANDS)
local selectedCommand = vim.fn.input('Enter a command: ')
local selectedDescription = vim.fn.input('Name the command: ')
COMMANDS[selectedDescription] = {
command = function() return selectedCommand end,
description = function() return selectedDescription end
}
return COMMANDS[selectedDescription]
end
}
|