" Markdown Sytax
packadd markdown
let g:vim_markdown_folding_disabled = 1
+syntax on
" Better status line.
-packadd airline
+" packadd airline
+" Local-only LLM support
+" You're trying to kidnap what I've rightfully stolen.
+" packadd vim-ollama
+" Remember to run :Ollama pipinstall
-
-set backupdir=c:\temp,.backup/,~/.backup/,/tmp//
+set tabstop=2 shiftwidth=2 expandtab
+set backupdir=~/.backup/,/tmp//
set directory=~/.swp
-set undodir=c:\temp,.undo/,~/.undo/,/tmp//
+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("<afile>"))
+ \ | if f > 100000 || f == -2
+ \ | let b:copilot_enabled = v:false
+ \ | endif
+
+