nvimdotfiles/after/plugin/dap/dap-lua-in-nvim.lua
2023-10-27 23:56:22 +02:00

13 lines
319 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