29 lines
1.0 KiB
Lua
Executable File
29 lines
1.0 KiB
Lua
Executable File
|
|
local present, dap = pcall(require, "dap")
|
|
if not present then
|
|
return
|
|
end
|
|
|
|
-- dap-install configurations
|
|
local dap_install = require("dap-install")
|
|
dap_install.setup {
|
|
installation_path = vim.fn.stdpath("data") .. "/dapinstall/",
|
|
}
|
|
local dap_install = require("dap-install")
|
|
local dbg_list = require("dap-install.api.debuggers").get_installed_debuggers()
|
|
|
|
for _, debugger in ipairs(dbg_list) do
|
|
dap_install.config(debugger)
|
|
end
|
|
|
|
|
|
-- dap-ui configurations
|
|
require("dapui").setup({})
|
|
|
|
dap.defaults.fallback.terminal_win_cmd = 'ToggleTerm'
|
|
vim.fn.sign_define('DapBreakpoint', {text='● ', texthl='DiagnosticSignError', linehl='', numhl=''})
|
|
vim.fn.sign_define('DapBreakpointCondition', {text='● ', texthl='DiagnosticSignWarn', linehl='', numhl=''})
|
|
vim.fn.sign_define('DapLogPoint', {text='● ', texthl='DiagnosticSignInfo', linehl='', numhl=''})
|
|
vim.fn.sign_define('DapStopped', {text='→ ', texthl='DiagnosticSignWarn', linehl='', numhl=''})
|
|
vim.fn.sign_define('DapBreakpointReject', {text='●' , texthl='DiagnosticSignHint', linehl='', numhl=''})
|