github / github/copilot.vim

function to toggle panel

未关闭
#190 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Vim Script
星标
11.7k
派生
810
PR 合并指标
30 天内没有已合并 PR

描述

Hello,

First off, thank you for this awesome plugin! Just starting to use it in certain situations and it amazes me how it works.

I recently created a toggle function to disable/enable copilot:
```
" custom global var for toggle function
let g:copilot_enabled = v:true

function! ToggleCopilot()
if g:copilot_enabled
Copilot disable
let g:copilot_enabled = v:false
else
Copilot enable
let g:copilot_enabled = v:true
endif
Copilot status
endfunction

nnoremap c :call ToggleCopilot()
```

And wanted to create something similar with `:Copilot panel`.

Any input in how I could achieve this is appreciated?

Thank you,
Dave

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。