feat: add icons for sidebar
This commit is contained in:
+22
-1
@@ -51,7 +51,16 @@ Config.autocmd('TermOpen', '*', function() vim.cmd('startinsert') end, 'Start in
|
|||||||
-- Diagnostics =================================================================
|
-- Diagnostics =================================================================
|
||||||
Config.later(function()
|
Config.later(function()
|
||||||
vim.diagnostic.config({
|
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' } },
|
underline = { severity = { min = 'HINT', max = 'ERROR' } },
|
||||||
virtual_lines = false,
|
virtual_lines = false,
|
||||||
virtual_text = {
|
virtual_text = {
|
||||||
@@ -60,4 +69,16 @@ Config.later(function()
|
|||||||
},
|
},
|
||||||
update_in_insert = false,
|
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)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user