From ea06566ca61e634e31c86f138fe134faa397ded1 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Tue, 14 May 2024 23:58:42 +0800 Subject: [PATCH] Lazy run copilot.vim. --- .vim/vimrc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.vim/vimrc b/.vim/vimrc index ca3591d..d8a8dc8 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -34,7 +34,6 @@ endif " let g:DisableAutoPHPFolding = 1 let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*'] -let g:copilot_enabled = v:false let g:indent_guides_auto_colors = 0 let g:indent_guides_enable_on_vim_startup = 1 hi IndentGuidesEven ctermbg=8 @@ -43,7 +42,7 @@ hi IndentGuidesOdd ctermbg=236 " mapping cnoremap pumvisible() ? "\" : "\" cnoremap pumvisible() ? "\" : "\" -map :Copilot enable +map :call plug#load('copilot.vim'):Copilot enable nmap [Z W nmap :TagbarToggle nmap w @@ -65,7 +64,7 @@ Plug 'bonsaiben/bootstrap-snippets' Plug 'ctrlpvim/ctrlp.vim' Plug 'editorconfig/editorconfig-vim' Plug 'garbas/vim-snipmate' -Plug 'github/copilot.vim' +Plug 'github/copilot.vim', { 'on': [] } Plug 'godlygeek/csapprox' Plug 'honza/vim-snippets' Plug 'itchyny/lightline.vim'