# HG changeset patch # User luka # Date 1764337608 18000 # Node ID 08bdff1abb15561946f7b8bb6fe5b2522baa70b6 # Parent eeda6b1401ae94a831b3da6d68645ba94403544e# Parent b95a8e2525cc5ce9e422cdfcf363878402b7fa19 merging heads diff -r eeda6b1401ae -r 08bdff1abb15 .vimrc --- 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 +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() diff -r eeda6b1401ae -r 08bdff1abb15 plugins/ctrlp.vim --- 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/* diff -r eeda6b1401ae -r 08bdff1abb15 plugins/hghelp/hghelp.vim --- 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) diff -r eeda6b1401ae -r 08bdff1abb15 plugins/vim-ai.vim --- /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" diff -r eeda6b1401ae -r 08bdff1abb15 plugins/vim-ai/roles.ini --- /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