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:
parent
f84c8e4924
commit
c684e62045
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user