14 lines
300 B
Lua
14 lines
300 B
Lua
local function lspSymbol(name, icon)
|
|
local hl = "DiagnosticSign" .. name
|
|
vim.fn.sign_define(hl, { text = icon, numhl = hl, texthl = hl })
|
|
end
|
|
|
|
lspSymbol("Error", "")
|
|
lspSymbol("Info", "")
|
|
lspSymbol("Hint", "")
|
|
lspSymbol("Warn", "")
|
|
|
|
vim.diagnostic.config({
|
|
virtual_text = false,
|
|
})
|