github / github/copilot.vim

function to toggle panel

Open
#190 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
11.7k
Forks
810
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.