From 90653b13bfc7a4f9be2b16d07bee3e398390aae3 Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 22 Jul 2026 14:06:15 -0500 Subject: [PATCH] Add GH Copilot config --- files/vimrc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/files/vimrc b/files/vimrc index 5682aeb..68a8ea9 100644 --- a/files/vimrc +++ b/files/vimrc @@ -106,3 +106,22 @@ set backupdir=~/.backup/,/tmp// set directory=~/.swp set undodir=~/.undo/,/tmp// set backspace=indent,eol,start " Do not be pedantic about backspace. + + +" ================= +" GitHub CoPilot +" ================= + +let g:copilot_filetypes = { + \ 'python': v:true, + \ 'markdown': v:false +\} + +" Disable Copilot for files larger than 100kb +autocmd BufReadPre * + \ let f=getfsize(expand("")) + \ | if f > 100000 || f == -2 + \ | let b:copilot_enabled = v:false + \ | endif + + -- 2.47.3