Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Dap is not working for js files #1

Open
abhishekghimire40 opened this issue Sep 10, 2023 · 3 comments
Open

Dap is not working for js files #1

abhishekghimire40 opened this issue Sep 10, 2023 · 3 comments

Comments

@abhishekghimire40
Copy link

I have configure neovim according to your configurations for go, python and javascript.
key mappings for dap works for go and python but it doesn't work for javascript.
In cheatsheet it shows the keymapping for dap:
Screenshot from 2023-09-10 12-05-50

But when i press leader+d in js file it doesn't show keymap for break point:
Screenshot from 2023-09-10 12-02-50

I have attached my nvim-dap plugin configuration and mappings:
Screenshot from 2023-09-10 12-03-58

Screenshot from 2023-09-10 12-06-38

Screenshot from 2023-09-10 12-05-01

@elliottminns
Copy link
Member

Hey! The issue you have is there is no loading event for javascript on your dap configuration. You'll need to set either ft={javascript} or event=VeryLazy on your nvim-dap plugin entry

@mahin54585458
Copy link

2024-07-30-00:05:14-screenshot
sir please help how can i fix this

@MRusbridge
Copy link

MRusbridge commented Aug 3, 2024

2024-07-30-00:05:14-screenshot sir please help how can i fix this

I managed to get passed this by changing the line in plugins.lua from
dependencies = "mfussenegger/nvim-dap" to

dependencies = {
  "mfussenegger/nvim-dap",
  "nvim-neotest/nvim-nio"
}

Edit: It's actually working for me now. I was having a problem with the connection being refused, but that was due to an unrelated python dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants