We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1e761b commit 865f40fCopy full SHA for 865f40f
2 files changed
README.md
@@ -119,6 +119,7 @@ require("copilot.panel").accept()
119
require("copilot.panel").jump_next()
120
require("copilot.panel").jump_prev()
121
require("copilot.panel").open({position, ratio})
122
+require("copilot.panel").toggle()
123
require("copilot.panel").refresh()
124
```
125
lua/copilot/panel.lua
@@ -534,6 +534,14 @@ function mod.jump_next()
534
panel:jump(1)
535
end
536
537
+function mod.toggle()
538
+ if panel.winid and vim.api.nvim_win_is_valid(panel.winid) then
539
+ panel:close()
540
+ else
541
+ mod.open({})
542
+ end
543
+end
544
+
545
function mod.refresh()
546
vim.api.nvim_buf_call(vim.uri_to_bufnr(panel_uri_to_doc_uri(panel.panel_uri)), function()
547
panel:refresh()
0 commit comments