jay-babu / mason-nvim-dap.nvim

GNU Affero General Public License v3.0
526 stars 37 forks source link

DapInstall missing and DAP adapters are not automacally configured when using Lazy #125

Closed AddictArts closed 5 months ago

AddictArts commented 5 months ago

Hi,

Using the Lazy config and I can't seem to get anything working. Here is my config

{
  "williamboman/mason.nvim",
  "mfussenegger/nvim-dap",
  "jay-babu/mason-nvim-dap.nvim",
  opts = {
    automatic_installation = true,
    handlers = {},
  },
}
jay-babu commented 5 months ago

you need to setup mason.nvim

jay-babu commented 5 months ago

and make both a dependency

jay-babu commented 5 months ago

this is invalid syntax for a lazy configy

AddictArts commented 5 months ago

this is invalid syntax for a lazy configy

Thanks for the help. This config is right off the README for this project.

jay-babu commented 5 months ago
{
    "williamboman/mason.nvim",
    "mfussenegger/nvim-dap",
    "jay-babu/mason-nvim-dap.nvim",
}

are you referring to this? this is valid syntax haha. a bit confusing. this is probably along the line you want. untested

{
    { "williamboman/mason.nvim", config = true },
    "mfussenegger/nvim-dap",
    {"jay-babu/mason-nvim-dap.nvim", config = ..., 
        dependencies = {"williamboman/mason.nvim", "mfussenegger/nvim-dap"},
    },
}
AddictArts commented 5 months ago

@jay-babu I've used the config as you show and still no DapInstall. Checking Lazy the mason-nvim-dap is loaded. Thanks for the help. Mason is also loaded.

AddictArts commented 5 months ago

I settled on this in my plugins which now results in DapInstall being present. However, I am unsure of the adapters and how to see if they were installed or available. I apologize I am new to this, lua, neovim, etc.

return {
  "jay-babu/mason-nvim-dap.nvim",
  dependencies = { "williamboman/mason.nvim", "mfussenegger/nvim-dap" },
  opts = {
    automatic_installation = true,
    handlers = {},
  },
}