function to toggle panel
Đang mở
- Ngôn ngữ chính
- Vim Script
- Star
- 11.7k
- Fork
- 810
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.