From c93dcace2b038e1464e8f0288ba39d232d6c4e98 Mon Sep 17 00:00:00 2001 From: yage Date: Wed, 26 Jun 2024 18:37:28 -0600 Subject: [PATCH] various vim plugin tweaks --- vim/en.utf-8.add | 1 + vim/en.utf-8.add.spl | Bin 1491 -> 1498 bytes vim/rc.d/01.plugin-youcompleteme.vim | 2 +- vim/rc.d/32.utility-scwrypts.vim | 8 ++++---- vim/rc.d/34.utility-quick-repl.vim | 2 +- vim/rc.d/35.utility-quick-command.vim | 2 +- vim/rc.d/42.file-execute.vim | 6 +++--- 7 files changed, 11 insertions(+), 10 deletions(-) diff --git a/vim/en.utf-8.add b/vim/en.utf-8.add index 0291dc9..e1ad53f 100644 --- a/vim/en.utf-8.add +++ b/vim/en.utf-8.add @@ -115,3 +115,4 @@ CloudFlare Cloudflare test When +exit diff --git a/vim/en.utf-8.add.spl b/vim/en.utf-8.add.spl index 7f8f05658f47217e7d3d324edee71ab02ac572ea..c052d9fd63de4a94a25e0d342a048110fd7bf732 100644 GIT binary patch delta 223 zcmcc2eT$nf%+t5HAT=k)=syDk^Q4V@M;O(alS?a@7#SF@8vzOBBE}NN48}^v0w4+G z|0`n51kr9KlRq%dW}H5`hsl<4-{ezFA&iqJ%QLGoR!w$gwrAWrxs|!pU~4f`5y*^U z#xllK#v;ZXAj!zU)LzV(&X~)X4>pPEd :call ToggleYCM() nnoremap gd :YcmCompleter GoToDefinition augroup ycm_hover - autocmd FileType rust,typescript,javascript,python nnoremap ? (YCMHover) + autocmd FileType rust,typescript,javascript,python nnoremap K (YCMHover) augroup end diff --git a/vim/rc.d/32.utility-scwrypts.vim b/vim/rc.d/32.utility-scwrypts.vim index bb1ff80..d3dd314 100644 --- a/vim/rc.d/32.utility-scwrypts.vim +++ b/vim/rc.d/32.utility-scwrypts.vim @@ -2,12 +2,12 @@ " 31.utility-execute.vim wrapper for scwrypts-specific execution " -function ExecuteScwrypt(scwrypt = '', args = '', output = '', syntax = 'bash') +function ExecuteScwrypt(scwrypt = '', args = '', output = '', syntax = 'bash', loglevel = '0') let b:scwryptsPrevArgs = a:args - call ExecuteCommand('scwrypts -n ' . a:scwrypt . ' -- ' . a:args, a:output, 'shell', a:syntax) + call ExecuteCommand('scwrypts --log-level ' . a:loglevel . ' ' . a:scwrypt . ' -- ' . a:args, a:output, 'shell', a:syntax) echom 'scwrypts -n ' . a:scwrypt . '--' . a:args endfunction -function ExecuteScwryptInteractive(scwrypt = '', args = '', output = '', syntax = 'bash') - call ExecuteScwrypt(a:scwrypt, a:args . input('scwrypts ' . a:scwrypt . '--' . a:args), a:output, a:syntax) +function ExecuteScwryptInteractive(scwrypt = '', args = '', output = '', syntax = 'bash', loglevel = '4') + call ExecuteScwrypt(a:scwrypt, a:args . input('scwrypts ' . a:scwrypt . '--' . a:args), a:output, a:syntax, a:loglevel) endfunction diff --git a/vim/rc.d/34.utility-quick-repl.vim b/vim/rc.d/34.utility-quick-repl.vim index 63bff49..e66eeba 100644 --- a/vim/rc.d/34.utility-quick-repl.vim +++ b/vim/rc.d/34.utility-quick-repl.vim @@ -51,7 +51,7 @@ function QuickREPL(repl = '') let b:quick_repl = l:repl let l:output = get(g:quickrepl_output_format_overrides_by_repl_command, l:repl, g:quickrepl_output_format_default) - let l:repl_args = get(g:quickrepl_repl_command_args, l:repl, '') + let l:repl_args = get(g:quickrepl_repl_command_args_by_repl_command, l:repl, '') call ExecuteCommand(l:repl . ' ' . l:repl_args, l:output) endfunction diff --git a/vim/rc.d/35.utility-quick-command.vim b/vim/rc.d/35.utility-quick-command.vim index 708b1ab..d22608f 100644 --- a/vim/rc.d/35.utility-quick-command.vim +++ b/vim/rc.d/35.utility-quick-command.vim @@ -67,4 +67,4 @@ endfunction nnoremap t :call QuickCommand() nnoremap gst :call QuickCommandSetGlobal() -nnoremap t :call QuickCommandReset() +"nnoremap t :call QuickCommandReset() diff --git a/vim/rc.d/42.file-execute.vim b/vim/rc.d/42.file-execute.vim index 78d962b..2a3d866 100644 --- a/vim/rc.d/42.file-execute.vim +++ b/vim/rc.d/42.file-execute.vim @@ -63,9 +63,9 @@ augroup file_specific_commands autocmd FileType *.scwrypts let b:scwryptsEnvs = split(system('scwrypts --list-envs'), '\n') autocmd FileType *.scwrypts let b:scwryptsEnvChoices = split(system('echo SCWRYPTS_ENV=; scwrypts --list-envs | awk "{print \"\"NR\". \"\$0}"'), '\n') - autocmd FileType *.scwrypts let b:executeDefault = "call ExecuteScwrypt(b:scwryptsAutoName, ' ', 'split-pane-vertical')" - autocmd FileType *.scwrypts let b:executeInteractive = "call ExecuteScwryptInteractive(b:scwryptsAutoName, ' ', 'split-pane-vertical')" + autocmd FileType *.scwrypts let b:executeDefault = "call ExecuteScwrypt(b:scwryptsAutoName, ' ', 'split-pane-horizontal', 'bash', '4')" + autocmd FileType *.scwrypts let b:executeInteractive = "call ExecuteScwryptInteractive(b:scwryptsAutoName, ' ', 'split-pane-horizontal')" autocmd FileType *.scwrypts let b:executeBuild = "let $SCWRYPTS_ENV=b:scwryptsEnvs[inputlist(b:scwryptsEnvChoices) - 1]" - autocmd FileType *.scwrypts let b:executeTest = "call ExecuteScwrypt(b:scwryptsAutoName, b:scwryptsPrevArgs, 'split-pane-vertical')" + autocmd FileType *.scwrypts let b:executeTest = "call ExecuteScwrypt(b:scwryptsAutoName, b:scwryptsPrevArgs, 'split-pane-horizontal', 'bash', '4')" augroup end " }}}