various vim plugin tweaks
This commit is contained in:
parent
1b71221ca5
commit
c93dcace2b
@ -115,3 +115,4 @@ CloudFlare
|
|||||||
Cloudflare
|
Cloudflare
|
||||||
test
|
test
|
||||||
When
|
When
|
||||||
|
exit
|
||||||
|
Binary file not shown.
@ -25,5 +25,5 @@ nnoremap <S-y> :call ToggleYCM()<CR>
|
|||||||
nnoremap gd :YcmCompleter GoToDefinition<CR>
|
nnoremap gd :YcmCompleter GoToDefinition<CR>
|
||||||
|
|
||||||
augroup ycm_hover
|
augroup ycm_hover
|
||||||
autocmd FileType rust,typescript,javascript,python nnoremap <silent><buffer> ? <Plug>(YCMHover)
|
autocmd FileType rust,typescript,javascript,python nnoremap <silent><buffer> K <Plug>(YCMHover)
|
||||||
augroup end
|
augroup end
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
" 31.utility-execute.vim wrapper for scwrypts-specific execution
|
" 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
|
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
|
echom 'scwrypts -n ' . a:scwrypt . '--' . a:args
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function ExecuteScwryptInteractive(scwrypt = '', args = '', output = '', syntax = 'bash')
|
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)
|
call ExecuteScwrypt(a:scwrypt, a:args . input('scwrypts ' . a:scwrypt . '--' . a:args), a:output, a:syntax, a:loglevel)
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -51,7 +51,7 @@ function QuickREPL(repl = '')
|
|||||||
let b:quick_repl = l: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: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)
|
call ExecuteCommand(l:repl . ' ' . l:repl_args, l:output)
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -67,4 +67,4 @@ endfunction
|
|||||||
|
|
||||||
nnoremap <Leader>t :call QuickCommand()<CR>
|
nnoremap <Leader>t :call QuickCommand()<CR>
|
||||||
nnoremap <Leader>gst :call QuickCommandSetGlobal()<CR>
|
nnoremap <Leader>gst :call QuickCommandSetGlobal()<CR>
|
||||||
nnoremap <LocalLeader>t :call QuickCommandReset()<CR>
|
"nnoremap <LocalLeader>t :call QuickCommandReset()<CR>
|
||||||
|
@ -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: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: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:executeDefault = "call ExecuteScwrypt(b:scwryptsAutoName, ' ', 'split-pane-horizontal', 'bash', '4')"
|
||||||
autocmd FileType *.scwrypts let b:executeInteractive = "call ExecuteScwryptInteractive(b:scwryptsAutoName, ' ', 'split-pane-vertical')"
|
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: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
|
augroup end
|
||||||
" }}}
|
" }}}
|
||||||
|
Loading…
Reference in New Issue
Block a user