Skip to content

Question / Feature Request: How to trigger the chat toggle programmatically via Lua API? #464

Description

@PowerzeraDev

Hello,
​I am trying to add a custom button to my dashboard using alpha-nvim to open the OpenCode chat. However, I haven't been able to make it work properly yet.
​Could you provide some guidance or clarification on how to achieve this integration programmatically? Specifically, is there a Lua function exposed by the plugin (like a .toggle()) that I can call directly from my dashboard configuration?

Here is what I'm currently trying to use in my alpha-nvim setup:

dashboard.button("o", "  OpenCode AI Chat", "<cmd>OpencodeToggle<cr>"),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions