1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 20:10:05 +08:00

add more language support key for typescript (#4141)

This commit is contained in:
Leo sun 2021-03-30 23:33:30 +08:00 committed by GitHub
parent f84c8e4924
commit c684e62045
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,6 +111,12 @@ function! s:on_typescript_ft() abort
\ 'preview definition', 1)
call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 't'], 'TSType',
\ 'view type', 1)
call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'R'], 'TSRefs',
\ 'show reference', 1)
call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'D'], 'TSGetDiagnostics',
\ 'show errors', 1)
call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'o'], 'TSOrganizeImports',
\ 'organizes imports', 1)
else
nnoremap <silent><buffer> gD :<C-u>TsuTypeDefinition<Cr>
call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'd'], 'TsuquyomiSignatureHelp',