summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAotrix <[email protected]>2026-06-03 21:05:45 +0200
committerAotrix <[email protected]>2026-06-03 21:05:45 +0200
commit3dc28117b416261ac366a638c662b4836de1d7e3 (patch)
treeab482ca7f5da04057f7bc784f0f8b777c0f97f04
parent1f0ab79a26a3bfc396f8fa09a1acda0df2d2fec3 (diff)
description is now a function
-rw-r--r--lua/aotrix/build.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/aotrix/build.lua b/lua/aotrix/build.lua
index 35d9675..96a7f75 100644
--- a/lua/aotrix/build.lua
+++ b/lua/aotrix/build.lua
@@ -21,14 +21,14 @@ local personalCommands = require("aotrix.personal_commands")
COMMANDS.AddTempCommand = {
command = function() return personalCommands.createCommand(COMMANDS) end,
- description = "Add temporary command"
+ description = function() return "Add temporary command" end
}
function selectCommand(listOfCommands, callback)
vim.ui.select(vim.tbl_keys(listOfCommands), {
prompt = "Select your command.",
format_item = function(item)
- return listOfCommands[item].description
+ return listOfCommands[item].description()
end
}, function(choice)
if (choice ~= nil) then