Skip to content

Commit

Permalink
remove color from pwndbg in repl
Browse files Browse the repository at this point in the history
  • Loading branch information
FalcoGer committed Nov 14, 2023
1 parent 4e9a4ba commit af6a65c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .vim/config/nvim_dap.vim
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ lua <<EOF
-- --------------------------------------------------------------
-- GDB, requires gdb 14.0 or higher

-- Workaround for https://github.com/mfussenegger/nvim-dap/issues/1088
-- requires posix (sudo luarocks-5.1 install lposix)
local posix = require('posix')
posix.setenv("PWNDBG_DISABLE_COLORS", "1")

-- local env = {"PWNDBG_DISABLE_COLORS=1"}
dap.adapters.gdb = {
type = "executable",
Expand All @@ -142,6 +147,13 @@ lua <<EOF
program = function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end,
-- No docs. Requires debugger to support forwarding
-- https://github.com/mfussenegger/nvim-dap/issues/1091
-- https://github.com/mfussenegger/nvim-dap/issues/455
args = function()
return vim.fn.input('Arguments: ', '')
end,
-- env also no docs
cwd = "${workspaceFolder}",
},
}
Expand Down

0 comments on commit af6a65c

Please sign in to comment.