changeset 12:08bdff1abb15

merging heads
author luka
date Fri, 28 Nov 2025 08:46:48 -0500
parents eeda6b1401ae (current diff) b95a8e2525cc (diff)
children d30762aa23dd
files .vimrc plugins/ctrlp.vim
diffstat 5 files changed, 54 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/.vimrc	Fri Nov 28 08:45:17 2025 -0500
+++ b/.vimrc	Fri Nov 28 08:46:48 2025 -0500
@@ -5,7 +5,10 @@
 set mouse=a
 inoremap <C-a> <C-x><C-i>
 
+colorscheme desert
+
 " Support for tags closing and classes
+source $HOME/.vim/plugins/vim-ai.vim
 source $HOME/.vim/plugins/taghelp.vim
 source $HOME/.vim/plugins/dbtables/dbtables.vim
 source $HOME/.vim/plugins/hghelp/hghelp.vim
@@ -17,6 +20,10 @@
 let g:db_name = ""      " Replace with your default database name
 let g:db_host = ""      " Replace with your default database name
 
+function! GeneratePhpCtags()
+ let command = 'ctags -R --fields=+aimS --php-kinds=cdfint --languages=php --extras=+q --tag-relative=yes --exclude=".git" --exclude=".hg" --exclude="node_modules" --exclude="composer.phar" --totals=yes'
+ let output = system(command)
+endfunction
 
 syntax on
 syntax enable
@@ -100,8 +107,8 @@
 
 " LLama.vim
 " put before llama.vim loads
-" let g:llama_config = { 'show_info': 0, 'endpoint': 'http://0.0.0.0:8080/infill' }
-" Plug 'ggml-org/llama.vim'
+let g:llama_config = { 'show_info': 0, 'endpoint': 'http://127.0.0.1:8012/infill' }
+Plug 'ggml-org/llama.vim'
 
 call plug#end()
 
--- a/plugins/ctrlp.vim	Fri Nov 28 08:45:17 2025 -0500
+++ b/plugins/ctrlp.vim	Fri Nov 28 08:46:48 2025 -0500
@@ -5,5 +5,5 @@
 set wildignore+=*/vendor/bundle/*
 set wildignore+=*/node_modules/*
 set wildignore+=*node_modules/*
-set wildignore+=*/vendor/*
-set wildignore+=*vendor/*
+"set wildignore+=*/vendor/*
+"set wildignore+=*vendor/*
--- a/plugins/hghelp/hghelp.vim	Fri Nov 28 08:45:17 2025 -0500
+++ b/plugins/hghelp/hghelp.vim	Fri Nov 28 08:46:48 2025 -0500
@@ -3,7 +3,7 @@
 
 function PopupCommand(command)
 	let buf = term_start(a:command, {'hidden': 1, 'term_finish': 'close'})
-	let winid = popup_create(buf, {'minwidth': 50, 'minheight': 20})
+	let winid = popup_create(buf, {'minwidth': 120, 'minheight': 28})
 endfunction
 
 function ExecuteCommand(command)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/plugins/vim-ai.vim	Fri Nov 28 08:46:48 2025 -0500
@@ -0,0 +1,5 @@
+let g:vim_ai_roles_config_file = expand("$HOME/.vim/plugins/vim-ai/roles.ini")
+
+" debug settings
+let g:vim_ai_debug = 1
+let g:vim_ai_debug_log_file = "/tmp/vim_ai_debug.log"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/plugins/vim-ai/roles.ini	Fri Nov 28 08:46:48 2025 -0500
@@ -0,0 +1,37 @@
+# .ini file structure: https://docs.python.org/3/library/configparser.html#supported-ini-file-structure
+
+
+# common options for all commands (complete, edit, chat)
+[default]
+options.model = gpt-5.1
+
+[default.chat]
+options.initial_prompt =
+  >>> system
+  You are a general assistant.
+  You are providing assistance through vim-ai chat.
+  If you attach code, please include ``` to enable syntax highlighting.
+
+[editor]
+options.initial_prompt =
+  >>> system
+  You are a general assistant providing editin help through the vim-ai plugin.
+  Answer shortly, consisely and only what you are asked.
+  Do not provide any explanantion or comments if not requested.
+  If you answer in a code, do not wrap it in markdown code block. Do not include any markdown codeblocks.
+
+options.endpoint_url = http://127.0.0.1:8012/v1/chat/completions
+options.auth_type = none
+
+[default.edit]
+options.initial_prompt =
+  >>> system
+  You are a general assistant providing editin help through the vim-ai plugin.
+  Answer shortly, consisely and only what you are asked.
+  Do not provide any explanantion or comments if not requested.
+  If you answer in a code, do not wrap it in markdown code block. Do not include any markdown codeblocks.
+  Reasoning: low 
+
+options.endpoint_url = http://127.0.0.1:8080/v1/chat/completions
+options.reasoning_effort = none 
+options.auth_type = none