Skip to content

Commit

Permalink
Add keybindings for attaching and running last for neotest
Browse files Browse the repository at this point in the history
  • Loading branch information
giodamelio committed Oct 24, 2024
1 parent 1ee40b1 commit a7aea88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/packages/_neovim_lua/keybinds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ wk.add({
{ '<leader>ts', function() neotest.summary.toggle() end, desc = 'Toggle summary' },
{ '<leader>tt', function() neotest.run.run() end, desc = 'Run nearest test' },
{ '<leader>tw', function() neotest.watch.toggle(vim.fn.expand('%')) end, desc = 'Watch tests in file' },
{ '<leader>ta', function() neotest.run.attach() end, desc = 'Attach to running test' },
{ '<leader>tl', function() neotest.run.run_last() end, desc = 'Run last test' },
})

-- Language Server
Expand Down

0 comments on commit a7aea88

Please sign in to comment.