13 lines
292 B
Lua
13 lines
292 B
Lua
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
|