Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[PLUGIN REQUEST] nvim-dap-rr #894

Closed
FrancescoDeSimone opened this issue Jan 5, 2024 · 4 comments · Fixed by #3089
Closed

[PLUGIN REQUEST] nvim-dap-rr #894

FrancescoDeSimone opened this issue Jan 5, 2024 · 4 comments · Fixed by #3089
Labels
enhancement New feature or request

Comments

@FrancescoDeSimone
Copy link

Plugin: nvim-dap-rr
Plugin repository: jonboh/nvim-dap-rr
Is the plugin on nixpkgs: No

Extra information

An extension for DAP that allows you to record an execution and later replay it

@FrancescoDeSimone FrancescoDeSimone added the enhancement New feature or request label Jan 5, 2024
@GaetanLepage
Copy link
Member

Upstream PR: NixOS/nixpkgs#278871

@jonboh
Copy link
Contributor

jonboh commented Mar 12, 2025

Now that nvim-dap-rr is in nixpkgs, you can use it with extraPlugins and extraConfigLua. I configure it like this:

{pkgs, ...}: {
  extraPlugins = [
    pkgs.vimPlugins.nvim-dap-rr
  ];
  extraConfigLua = '' 
      -- ... more of your dap config
      local rr_dap = require("nvim-dap-rr")
      rr_dap.setup({
          mappings = {
              continue = "<F10>", -- FRight
              step_over = "<F1>", -- FDown
              step_out = "<F2>", -- FUp
              step_into = "<F3>", -- FRight
              reverse_continue = "<F22>", -- <S-FLeft>
              reverse_step_over = "<F13>", -- <S-FDown>
              reverse_step_out = "<F14>", -- <S-FUp>
              reverse_step_into = "<F15>", -- <S-FRight>
              step_over_i = "<F25>", -- <C-FDown>
              step_out_i = "<F26>", -- <C-FUp>
              step_into_i = "<F27>", -- <C-FRight>
              reverse_step_over_i = "<F37>", -- <SC-FDown>
              reverse_step_out_i = "<F38>", -- <SC-FUp>
              reverse_step_into_i = "<F39>", -- <SC-FRight>
          }
      })
      table.insert(dap.configurations.rust, rr_dap.get_rust_config())
      table.insert(dap.configurations.cpp, rr_dap.get_config())
''

@GaetanLepage
Copy link
Member

@jonboh can you test #3089 please?

@jonboh
Copy link
Contributor

jonboh commented Mar 20, 2025

sure, I'll let you know there if everything's ok

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants