aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2023-11-30 20:03:13 +0100
committerTeddy Wing2023-12-01 20:42:01 +0100
commit3b866040ef1c09c9e5786ff1bd1f5b7993dad958 (patch)
tree120380c585b3a9aa0ef8f7bb76c355a41b14bc17
parent0782a9709eab7b4930547f0e4095030b33f9e28c (diff)
downloaddotvim-3b866040ef1c09c9e5786ff1bd1f5b7993dad958.tar.bz2
ftplugin/typescript.vim: Add debugger mappings
-rw-r--r--ftplugin/typescript.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/ftplugin/typescript.vim b/ftplugin/typescript.vim
index fb9fc46..bf82549 100644
--- a/ftplugin/typescript.vim
+++ b/ftplugin/typescript.vim
@@ -16,6 +16,10 @@ nnoremap <silent> <buffer> <C-w><C-f>
nnoremap <silent> <buffer> <C-w>gf
\ :<C-u>call <SID>FindFile(v:count1, expand('<cfile>'), 'tabfind', '<C-v><C-w>gf')<CR>
+" Debugging
+nnoremap <buffer> Zd odebugger;<Esc>
+nnoremap <buffer> ZD Odebugger;<Esc>
+
nnoremap <buffer> Zf
\ :<C-u>execute 'silent !prettier --write ' . shellescape(expand('%'))
\ <Bar> redraw!<CR>
@@ -24,6 +28,8 @@ let b:undo_ftplugin .= 'nunmap <buffer> gf'
let b:undo_ftplugin .= '| nunmap <buffer> <C-w>f'
let b:undo_ftplugin .= '| nunmap <buffer> <C-w><C-f>'
let b:undo_ftplugin .= '| nunmap <buffer> <C-w>gf'
+let b:undo_ftplugin .= '| nunmap <buffer> Zd'
+let b:undo_ftplugin .= '| nunmap <buffer> ZD'
let b:undo_ftplugin .= '| nunmap <buffer> Zf'