From bd22e1ee57efb1b1f3ac6f5fbf65a80d5b2de7f4 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Thu, 1 Dec 2022 13:51:29 +0100 Subject: [PATCH] Set up copilot --- .vimrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.vimrc b/.vimrc index 3137189..e14f868 100644 --- a/.vimrc +++ b/.vimrc @@ -104,6 +104,7 @@ nn so :so % call plug#begin() " Coc Plug 'neoclide/coc.nvim', {'branch': 'release'} +Plug 'github/copilot.vim' " General Plug 'tpope/vim-commentary' Plug 'machakann/vim-sandwich' @@ -172,6 +173,15 @@ se statusline^=%{coc#status()}%{get(b:,'coc_current_function','')} " Prettier command com! -nargs=0 Prettier :CocCommand prettier.formatFile +" `.../copilot` {{{ + +let g:copilot_node_command = "/home/h/.config/nvm/versions/node/v16.18.0/bin/node" +let g:copilot_no_tab_map = v:true +imap (copilot-next) +imap (copilot-prev) +imap