21 lines
473 B
Lua
21 lines
473 B
Lua
local sign = function(opts)
|
|
vim.fn.sign_define(opts.name, {
|
|
texthl = opts.name,
|
|
text = opts.text,
|
|
numhl = ''
|
|
})
|
|
end
|
|
|
|
sign({name = 'DiagnosticSignError', text = '✘'})
|
|
sign({name = 'DiagnosticSignWarn', text = '▲'})
|
|
sign({name = 'DiagnosticSignHint', text = '⚑'})
|
|
sign({name = 'DiagnosticSignInfo', text = '»'})
|
|
|
|
vim.diagnostic.config({
|
|
virtual_text = false,
|
|
severity_sort = true,
|
|
float = {
|
|
border = 'rounded',
|
|
source = 'always',
|
|
},
|
|
})
|