Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 789 Bytes

README.md

File metadata and controls

44 lines (29 loc) · 789 Bytes

ddc-source-copilot

Copilot completion for ddc.vim

NOTE: It is based on "ddc-copilot".

https://github.com/yuki-yano/ddc-copilot

Required

copilot.vim or copilot.lua

https://github.com/github/copilot.vim

https://github.com/zbirenbaum/copilot.lua

denops.vim

https://github.com/vim-denops/denops.vim

ddc.vim

https://github.com/Shougo/ddc.vim

Configuration

let g:copilot_no_maps = v:true

call ddc#custom#patch_global('sources', ['copilot'])

call ddc#custom#patch_global('sourceOptions', #{
      \   copilot: #{
      \     mark: 'copilot',
      \     matchers: [],
      \     minAutoCompleteLength: 0,
      \   }
      \ })
call ddc#custom#patch_global('sourceParams', #{
      \   copilot: #{
      \     copilot: 'vim',
      \   }
      \ })