first commit
This commit is contained in:
commit
2a3ea31491
52 changed files with 2991 additions and 0 deletions
21
apps/neovim/diagnostic.lua
Normal file
21
apps/neovim/diagnostic.lua
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
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',
|
||||
},
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue