X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/9ddfda246d6ca06aa6534f4c4d09f19c693cc5c7..bccfe2dedb5efc6504e7b6de830ffa9ac4a4afed:/files/vimrc?ds=sidebyside diff --git a/files/vimrc b/files/vimrc index 8228aa2..68a8ea9 100644 --- a/files/vimrc +++ b/files/vimrc @@ -96,9 +96,32 @@ syntax on " Better status line. " 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("")) + \ | if f > 100000 || f == -2 + \ | let b:copilot_enabled = v:false + \ | endif + +