aboutsummaryrefslogtreecommitdiffstats
path: root/nvim/lua/user/dapui.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lua/user/dapui.lua')
-rw-r--r--nvim/lua/user/dapui.lua60
1 files changed, 60 insertions, 0 deletions
diff --git a/nvim/lua/user/dapui.lua b/nvim/lua/user/dapui.lua
new file mode 100644
index 0000000..54ae38c
--- /dev/null
+++ b/nvim/lua/user/dapui.lua
@@ -0,0 +1,60 @@
+local M = {
+ "rcarriga/nvim-dap-ui",
+ commit = "1cd4764221c91686dcf4d6b62d7a7b2d112e0b13",
+ event = "VeryLazy",
+ dependencies = {
+ {
+ "mfussenegger/nvim-dap",
+ commit = "6b12294a57001d994022df8acbe2ef7327d30587",
+ event = "VeryLazy",
+ },
+ },
+}
+
+function M.config()
+ require("dapui").setup {
+ expand_lines = true,
+ icons = { expanded = "", collapsed = "", circular = "" },
+ mappings = {
+ -- Use a table to apply multiple mappings
+ expand = { "<CR>", "<2-LeftMouse>" },
+ open = "o",
+ remove = "d",
+ edit = "e",
+ repl = "r",
+ toggle = "t",
+ },
+ layouts = {
+ {
+ elements = {
+ { id = "scopes", size = 0.33 },
+ { id = "breakpoints", size = 0.17 },
+ { id = "stacks", size = 0.25 },
+ { id = "watches", size = 0.25 },
+ },
+ size = 0.33,
+ position = "right",
+ },
+ {
+ elements = {
+ { id = "repl", size = 0.45 },
+ { id = "console", size = 0.55 },
+ },
+ size = 0.27,
+ position = "bottom",
+ },
+ },
+ floating = {
+ max_height = 0.9,
+ max_width = 0.5, -- Floats will be treated as percentage of your screen.
+ border = vim.g.border_chars, -- Border style. Can be 'single', 'double' or 'rounded'
+ mappings = {
+ close = { "q", "<Esc>" },
+ },
+ },
+ }
+
+ vim.fn.sign_define("DapBreakpoint", { text = "", texthl = "DiagnosticSignError", linehl = "", numhl = "" })
+end
+
+return M