From 6b540d7db030e4110aa3a31dd06c6c41387444db Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 2 Mar 2020 00:34:02 +0100 Subject: Update --- ftplugin/crystal.vim | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'ftplugin/crystal.vim') diff --git a/ftplugin/crystal.vim b/ftplugin/crystal.vim index c82c3b74..c23d93f6 100644 --- a/ftplugin/crystal.vim +++ b/ftplugin/crystal.vim @@ -43,30 +43,30 @@ setlocal errorformat= let g:crystal_compiler_command = get(g:, 'crystal_compiler_command', 'crystal') let g:crystal_auto_format = get(g:, 'crystal_auto_format', 0) -command! -buffer -nargs=* CrystalImpl echo crystal_lang#impl(expand('%'), getpos('.'), ).output -command! -buffer -nargs=0 CrystalDef call crystal_lang#jump_to_definition(expand('%'), getpos('.')) -command! -buffer -nargs=* CrystalContext echo crystal_lang#context(expand('%'), getpos('.'), ).output -command! -buffer -nargs=* CrystalHierarchy echo crystal_lang#type_hierarchy(expand('%'), ) -command! -buffer -nargs=? CrystalSpecSwitch call crystal_lang#switch_spec_file() -command! -buffer -nargs=? CrystalSpecRunAll call crystal_lang#run_all_spec() +command! -buffer -nargs=* CrystalImpl echo crystal_lang#impl(expand('%'), getpos('.'), ).output +command! -buffer -nargs=0 CrystalDef call crystal_lang#jump_to_definition(expand('%'), getpos('.')) +command! -buffer -nargs=* CrystalContext echo crystal_lang#context(expand('%'), getpos('.'), ).output +command! -buffer -nargs=* CrystalHierarchy echo crystal_lang#type_hierarchy(expand('%'), ) +command! -buffer -nargs=? CrystalSpecSwitch call crystal_lang#switch_spec_file() +command! -buffer -nargs=? CrystalSpecRunAll call crystal_lang#run_all_spec() command! -buffer -nargs=? CrystalSpecRunCurrent call crystal_lang#run_current_spec() -command! -buffer -nargs=* -bar CrystalFormat call crystal_lang#format(, 0) -command! -buffer -nargs=* CrystalExpand echo crystal_lang#expand(expand('%'), getpos('.'), ).output +command! -buffer -nargs=* -bar CrystalFormat call crystal_lang#format(, 0) +command! -buffer -nargs=* CrystalExpand echo crystal_lang#expand(expand('%'), getpos('.'), ).output nnoremap (crystal-jump-to-definition) :CrystalDef -nnoremap (crystal-show-context) :CrystalContext -nnoremap (crystal-spec-switch) :CrystalSpecSwitch -nnoremap (crystal-spec-run-all) :CrystalSpecRunAll -nnoremap (crystal-spec-run-current) :CrystalSpecRunCurrent -nnoremap (crystal-format) :CrystalFormat +nnoremap (crystal-show-context) :CrystalContext +nnoremap (crystal-spec-switch) :CrystalSpecSwitch +nnoremap (crystal-spec-run-all) :CrystalSpecRunAll +nnoremap (crystal-spec-run-current) :CrystalSpecRunCurrent +nnoremap (crystal-format) :CrystalFormat augroup plugin-ft-crystal - autocmd BufWritePre if g:crystal_auto_format | call crystal_lang#format('', 1) | endif + autocmd BufWritePre if g:crystal_auto_format | call crystal_lang#format('', 1) | endif augroup END if get(g:, 'crystal_define_mappings', 1) - nmap gd (crystal-jump-to-definition) - nmap gc (crystal-show-context) + nmap gd (crystal-jump-to-definition) + nmap gc (crystal-show-context) nmap gss (crystal-spec-switch) nmap gsa (crystal-spec-run-all) nmap gsc (crystal-spec-run-current) -- cgit v1.2.3