Mercurial > vim
changeset 17:412c33afd395
Update for core and some minor fixes
| author | Luka Sitas <lsitas@avatarasoftware.com> |
|---|---|
| date | Fri, 05 Dec 2025 08:48:49 -0500 |
| parents | d30762aa23dd |
| children | 203279635445 |
| files | .vimrc plugins/core/core.vim plugins/hghelp/hghelp.vim plugins/vim-ai/roles.ini |
| diffstat | 4 files changed, 20 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/.vimrc Tue Dec 02 19:44:32 2025 -0500 +++ b/.vimrc Fri Dec 05 08:48:49 2025 -0500 @@ -8,6 +8,7 @@ colorscheme desert " Support for tags closing and classes +source $HOME/.vim/plugins/core/core.vim source $HOME/.vim/plugins/vim-ai.vim source $HOME/.vim/plugins/taghelp.vim source $HOME/.vim/plugins/dbtables/dbtables.vim
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plugins/core/core.vim Fri Dec 05 08:48:49 2025 -0500 @@ -0,0 +1,17 @@ +function PopupCommand(command) + let buf = term_start(a:command, {'hidden': 1, 'term_finish': 'close'}) + let winid = popup_create(buf, {'minwidth': 120, 'minheight': 28}) +endfunction + +function! ReadOnlyPopup(content) + let lines = split(a:content, "\n") + let winid = popup_create(lines, {'minwidth':120, 'minheight':28}) + let buf = winbuf(winid) + call setbufvar(buf, '&modifiable', 0) + call setbufvar(buf, '&bufhidden', 'wipe') +endfunction + +function! ExecuteCommand(command) + " a:command is a shell command string, e.g. 'hg status' + return system(a:command . ' 2>&1') +endfunction
--- a/plugins/hghelp/hghelp.vim Tue Dec 02 19:44:32 2025 -0500 +++ b/plugins/hghelp/hghelp.vim Fri Dec 05 08:48:49 2025 -0500 @@ -1,16 +1,6 @@ let g:hg_format_command = "" -function PopupCommand(command) - let buf = term_start(a:command, {'hidden': 1, 'term_finish': 'close'}) - let winid = popup_create(buf, {'minwidth': 120, 'minheight': 28}) -endfunction - -function! ExecuteCommand(command) - " a:command is a shell command string, e.g. 'hg status' - return system(a:command . ' 2>&1') -endfunction - function! s:CommitWithFormat() wa if exists("g:hg_format_command") && !empty(g:hg_format_command) @@ -21,6 +11,7 @@ call PopupCommand('hg commit') endfunction + function! s:OpenHgDiff(file) let l:current_file = a:file !=# '' ? a:file : expand('%') let l:filetype = &filetype
--- a/plugins/vim-ai/roles.ini Tue Dec 02 19:44:32 2025 -0500 +++ b/plugins/vim-ai/roles.ini Fri Dec 05 08:48:49 2025 -0500 @@ -33,5 +33,5 @@ Reasoning: low options.endpoint_url = http://127.0.0.1:8080/v1/chat/completions -options.reasoning_effort = none +options.reasoning_effort = low options.auth_type = none
