Add copilot support.
This commit is contained in:
5
init.vim
5
init.vim
@@ -21,6 +21,7 @@ Plug 'antoyo/vim-licenses'
|
|||||||
Plug 'flazz/vim-colorschemes'
|
Plug 'flazz/vim-colorschemes'
|
||||||
Plug 'xiyaowong/transparent.nvim'
|
Plug 'xiyaowong/transparent.nvim'
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
|
Plug 'github/copilot.vim', {'branch': 'release'}
|
||||||
call plug#end()
|
call plug#end()
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
" to ignore plugin indent changes, instead use:
|
" to ignore plugin indent changes, instead use:
|
||||||
@@ -160,3 +161,7 @@ nnoremap <leader>f :Files<CR>
|
|||||||
nnoremap <leader>F :tabnew<CR>:Files<CR>
|
nnoremap <leader>F :tabnew<CR>:Files<CR>
|
||||||
nnoremap <leader>g :GFiles<CR>
|
nnoremap <leader>g :GFiles<CR>
|
||||||
nnoremap <leader>G :tabnew<CR>:GFiles<CR>
|
nnoremap <leader>G :tabnew<CR>:GFiles<CR>
|
||||||
|
|
||||||
|
" Copilot
|
||||||
|
imap <silent><script><expr> <C-J> copilot#Accept("\<CR>")
|
||||||
|
let g:copilot_no_tab_map = v:true
|
||||||
|
|||||||
Reference in New Issue
Block a user