]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - files/vimrc
Lama.cpp WIP
[dotfiles.git] / files / vimrc
index bae30e99ba36bc3e8d36b69335cd230ec0479fa6..68a8ea9946c1224bd77762a160f39d4c7b1793db 100644 (file)
@@ -91,13 +91,37 @@ packadd nerdtree
 " 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
+
+