Skip to content

Commit

Permalink
add copilot for vim
Browse files Browse the repository at this point in the history
  • Loading branch information
mzlogin committed May 28, 2023
1 parent b37cf0e commit 3e393eb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ Plug 'equal-l2/vim-base64'
" vim terminal
Plug 'skywind3000/vim-terminal-help'

" copilot
Plug 'github/copilot.vim'

" All of your Plugins must be added before the following line
call plug#end() " required
" }}}
Expand Down Expand Up @@ -504,4 +507,11 @@ vnoremap <silent> <leader>ba :<c-u>call base64#decode_and_substitute()<cr>
let g:terminal_key = ''
let g:terminal_close = 1

" copilot
let g:copilot_filetypes = {
\ 'markdown': v:true,
\ }
imap <silent><script><expr> <C-J> copilot#Accept("\<CR>")
let g:copilot_no_tab_map = v:true

" }}}

0 comments on commit 3e393eb

Please sign in to comment.