+
+
+" =================
+" 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("<afile>"))
+ \ | if f > 100000 || f == -2
+ \ | let b:copilot_enabled = v:false
+ \ | endif
+
+