zbirenbaum / copilot.lua

Fully featured & enhanced replacement for copilot.vim complete with API for interacting with Github Copilot
MIT License
2.43k stars 64 forks source link

Expose panel:close #241

Open maxdiebold opened 7 months ago

maxdiebold commented 7 months ago

Not an issue, but a small feature request: would it be possible to expose the panel:close method, so a keymap can be set to toggle the panel visibility? Or, better yet, just create a wrapper panel:toggle function?

MunifTanjim commented 7 months ago

If your cursor is inside the panel, you can just run :quit.

Or do you want to close it when your cursor is not inside panel?