Compare commits
2
Commits
a9c376c8f8
...
8f6e78bc02
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f6e78bc02
|
||
|
|
a1acbdf63c
|
+22
-1
@@ -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)
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user