X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/511bc2215ff347cd2737e8f177234d1ec431cec8..b2c112d45d95d72e686a3c5dac6336eaea94c563:/files/vimrc 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 + +