Compare commits

...
2 Commits
Author SHA1 Message Date
Job79 8f6e78bc02 feat: add extra debugger shortcuts 2026-08-29 17:29:58 +02:00
Job79 a1acbdf63c feat: add icons for sidebar 2026-08-29 17:26:30 +02:00
2 changed files with 25 additions and 1 deletions
+22 -1
View File
@@ -51,7 +51,16 @@ Config.autocmd('TermOpen', '*', function() vim.cmd('startinsert') end, 'Start in
-- Diagnostics =================================================================
Config.later(function()
vim.diagnostic.config({
signs = { priority = 9999, severity = { min = 'WARN', max = 'ERROR' } },
signs = {
priority = 9999,
severity = { min = 'WARN', max = 'ERROR' },
text = {
[vim.diagnostic.severity.ERROR] = '',
[vim.diagnostic.severity.WARN] = '',
[vim.diagnostic.severity.INFO] = '',
[vim.diagnostic.severity.HINT] = '',
},
},
underline = { severity = { min = 'HINT', max = 'ERROR' } },
virtual_lines = false,
virtual_text = {
@@ -60,4 +69,16 @@ Config.later(function()
},
update_in_insert = false,
})
local dap_signs = {
DapBreakpoint = { text = '', texthl = 'DapBreakpoint', linehl = '', numhl = '' },
DapBreakpointCondition = { text = '', texthl = 'DapBreakpointCondition', linehl = '', numhl = '' },
DapLogPoint = { text = '', texthl = 'DapLogPoint', linehl = '', numhl = '' },
DapStopped = { text = '', texthl = 'DapStopped', linehl = 'DapStoppedLine', numhl = '' },
DapBreakpointRejected = { text = '', texthl = 'DapBreakpointRejected', linehl = '', numhl = '' },
}
for name, sign in pairs(dap_signs) do
vim.fn.sign_define(name, sign)
end
end)
+3
View File
@@ -62,6 +62,9 @@ nmap_leader("dc", function() require("dap").continue() end, "Run/Continue", "dap
nmap_leader("dC", function() require("dap").run_to_cursor() end, "Run to Cursor", "dap")
nmap_leader("de", function() require("dap.ui.widgets").hover() end, "Inspect", "dap")
nmap_leader("dt", function() require("dap").terminate() end, "Terminate", "dap")
nmap_leader("dl", function() require("dap").set_breakpoint(nil, nil, vim.fn.input("Log point message: ")) end,
"log point", "dap")
nmap_leader("dr", function() require("dap").repl.open() end, "open repl", "dap")
-- Explore =====================================================================
nmap_leader("ed", function() MiniFiles.open() end, "Directory")