Skip to content

Commit

Permalink
Add support for debugging category detection with nvim-dap (#191)
Browse files Browse the repository at this point in the history
* add support for debugging category detection with nvim-dap

* update history file for 1.3.0

* remove accidentally pasted line

* Revert version bump

* Revert Update HISTORY.rst

* Only check for lua support

---------

Co-authored-by: Alan Hamlett <[email protected]>
  • Loading branch information
TabulateJarl8 and alanhamlett authored Nov 15, 2024
1 parent f699e30 commit cb84e1a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions plugin/wakatime.vim
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,17 @@ EOF
let cmd = cmd + ['--extra-heartbeats']
endif

" Debugging category support
if has('lua')
" check if nvim-dap is loaded
if luaeval("package.loaded['dap'] ~= nil")
" check if debugging session is active
if luaeval("require('dap').session() ~= nil")
let cmd = cmd + ['--category', 'debugging']
endif
end
endif

" overwrite shell
let [sh, shellcmdflag, shrd] = [&shell, &shellcmdflag, &shellredir]
if !s:IsWindows()
Expand Down

0 comments on commit cb84e1a

Please sign in to comment.