feat: Test ironbar

This commit is contained in:
Fabio Lenherr / DashieTM 2023-08-25 18:11:05 +02:00
parent e147a91d84
commit 993bd794f0
17 changed files with 825 additions and 116 deletions

View file

@ -1,4 +1,78 @@
return {
{
"rcarriga/nvim-dap-ui",
keys = {
{
"<leader>du",
function()
require("dapui").toggle()
end,
silent = true,
},
},
opts = {
icons = { expanded = "", collapsed = "", circular = "" },
mappings = {
expand = { "<CR>", "<2-LeftMouse>" },
open = "o",
remove = "d",
edit = "e",
repl = "r",
toggle = "t",
},
layouts = {
{
elements = {
{ id = "repl", size = 0.30 },
{ id = "console", size = 0.70 },
},
size = 0.19,
position = "bottom",
},
{
elements = {
{ id = "scopes", size = 0.30 },
{ id = "breakpoints", size = 0.20 },
{ id = "stacks", size = 0.10 },
{ id = "watches", size = 0.30 },
},
size = 0.20,
position = "right",
},
},
controls = {
enabled = true,
element = "repl",
icons = {
pause = "",
play = "ε½ô",
step_into = "ε½ö",
step_over = "ε½û ",
step_out = "ε½ò",
step_back = "ε«Å ",
run_last = " ",
terminate = "ε½ù ",
},
},
floating = {
max_height = 0.9,
max_width = 0.5,
border = vim.g.border_chars,
mappings = {
close = { "q", "<Esc>" },
},
},
},
config = function(_, opts)
local icons = require("core.icons").dap
for name, sign in pairs(icons) do
---@diagnostic disable-next-line: cast-local-type
sign = type(sign) == "table" and sign or { sign }
vim.fn.sign_define("Dap" .. name, { text = sign[1] })
end
require("dapui").setup(opts)
end,
},
{
"mfussenegger/nvim-dap",
lazy = true,