dreamsofcode-io / neovim-nodejs

27 stars 14 forks source link

Dap is not working for js files #1

Open abhishekghimire40 opened 1 year ago

abhishekghimire40 commented 1 year ago

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 commented 1 year ago

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 commented 3 months ago

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

MRusbridge commented 3 months ago

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.