Neovim_Backup/lua/plugins/dap.lua
Price Hiller 7d70eda7a6 Current
2021-12-16 02:15:56 -06:00

62 lines
1.7 KiB
Lua
Executable File

-- 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({
icons = { expanded = "", collapsed = "" },
mappings = {
-- Use a table to apply multiple mappings
expand = { "<CR>", "<2-LeftMouse>" },
open = "o",
remove = "d",
edit = "e",
repl = "r",
},
sidebar = {
-- You can change the order of elements in the sidebar
elements = {
-- Provide as ID strings or tables with "id" and "size" keys
{
id = "scopes",
size = 0.25, -- Can be float or integer > 1
},
{ id = "breakpoints", size = 0.25 },
{ id = "stacks", size = 0.25 },
{ id = "watches", size = 00.25 },
},
size = 40,
position = "left", -- Can be "left", "right", "top", "bottom"
},
tray = {
elements = { "repl" },
size = 10,
position = "bottom", -- Can be "left", "right", "top", "bottom"
},
floating = {
max_height = nil, -- These can be integers or a float between 0 and 1.
max_width = nil, -- Floats will be treated as percentage of your screen.
border = "single", -- Border style. Can be "single", "double" or "rounded"
mappings = {
close = { "q", "<Esc>" },
},
},
windows = { indent = 1 },
})
vim.fn.sign_define('DapBreakpoint', {text='', texthl='', linehl='', numhl=''})
local dap = require('dap')
dap.defaults.fallback.terminal_win_cmd = 'ToggleTerm'