mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 23:47:34 +00:00
Fix trouble icons
This commit is contained in:
parent
f766f82b2a
commit
175c271d90
@ -24,7 +24,12 @@ function M.config_lsp_ui()
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Diagnostics signs
|
-- Diagnostics signs
|
||||||
local signs = { Error = "🔥", Warn = "⚠️", Hint = "🤔", Info = "➞" }
|
local signs = {
|
||||||
|
Error = "🔥",
|
||||||
|
Warn = "⚠️",
|
||||||
|
Hint = "🤔",
|
||||||
|
Info = "➞",
|
||||||
|
}
|
||||||
for type, icon in pairs(signs) do
|
for type, icon in pairs(signs) do
|
||||||
local hl = "DiagnosticSign" .. type
|
local hl = "DiagnosticSign" .. type
|
||||||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
||||||
@ -34,13 +39,8 @@ function M.config_lsp_ui()
|
|||||||
trouble.setup({
|
trouble.setup({
|
||||||
fold_open = "▼",
|
fold_open = "▼",
|
||||||
fold_closed = "▶",
|
fold_closed = "▶",
|
||||||
signs = {
|
icons = false,
|
||||||
error = signs.Error,
|
use_diagnostic_signs = true,
|
||||||
warning = signs.Warning,
|
|
||||||
hint = signs.Hint,
|
|
||||||
information = signs.Info,
|
|
||||||
other = "",
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user