fix: final nvim-dap edits
This commit is contained in:
@@ -141,7 +141,6 @@ function Hover.eval_expr(frame_id, expr)
|
|||||||
frameId = frame_id,
|
frameId = frame_id,
|
||||||
context = "hover",
|
context = "hover",
|
||||||
}, function(err, resp)
|
}, function(err, resp)
|
||||||
log.debug("resp: %s", vim.inspect(resp))
|
|
||||||
if err or not resp or not resp.result then
|
if err or not resp or not resp.result then
|
||||||
if err then
|
if err then
|
||||||
log.warning("Failed to evaluate '%s': %s", expr, err)
|
log.warning("Failed to evaluate '%s': %s", expr, err)
|
||||||
@@ -307,6 +306,12 @@ return {
|
|||||||
config = function()
|
config = function()
|
||||||
local dap = require("dap")
|
local dap = require("dap")
|
||||||
|
|
||||||
|
-- Set DebugPC to only use underline
|
||||||
|
vim.api.nvim_set_hl(0, "DebugPC", {
|
||||||
|
bg = "NONE",
|
||||||
|
fg = "NONE",
|
||||||
|
})
|
||||||
|
|
||||||
vim.api.nvim_create_user_command(
|
vim.api.nvim_create_user_command(
|
||||||
"Debug",
|
"Debug",
|
||||||
---@param opts vim.api.keyset.create_user_command.command_args
|
---@param opts vim.api.keyset.create_user_command.command_args
|
||||||
@@ -330,7 +335,6 @@ return {
|
|||||||
end
|
end
|
||||||
cfg.args = args
|
cfg.args = args
|
||||||
|
|
||||||
log.debug("Config: %s", vim.inspect(cfg))
|
|
||||||
dap.run(cfg)
|
dap.run(cfg)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user