nvimdotfiles/after/plugin/dap/dap-lua-in-nvim.lua

13 lines
319 B
Lua
Raw Normal View History

2023-10-27 21:56:22 +00:00
local dap = require "dap"
dap.configurations.lua = {
{
type = 'nlua',
request = 'attach',
name = "Attach to running Neovim instance",
}
}
dap.adapters.nlua = function(callback, config)
callback({ type = 'server', host = config.host or "127.0.0.1", port = config.port or 8086 })
end