File tree Expand file tree Collapse file tree
lua/codecompanion/interactions/chat Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,21 @@ local function format_keys(modes)
2323 return table.concat (segments , " " )
2424end
2525
26+ --- Build the static items shown in every chat command palette
27+ --- @return table
28+ local function static_items ()
29+ return {
30+ {
31+ callback = function ()
32+ require (" codecompanion" ).actions ()
33+ end ,
34+ description = " Open the action palette" ,
35+ name = " CodeCompanion actions" ,
36+ type = " static" ,
37+ },
38+ }
39+ end
40+
2641--- Build items from the chat's keymaps
2742--- @param chat CodeCompanion.Chat
2843--- @return table
122137function CommandPalette .launch (chat )
123138 local items = {}
124139
140+ vim .list_extend (items , static_items ())
125141 vim .list_extend (items , keymap_items (chat ))
126142 vim .list_extend (items , slash_command_items (chat ))
127143
You can’t perform that action at this time.
0 commit comments