mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
nvim: del v0.11 migrations.lua, lazydev support
This commit is contained in:
parent
7540d37422
commit
6fb3efd1dc
11 changed files with 80 additions and 92 deletions
|
|
@ -1,8 +1,16 @@
|
|||
local signs = require("config.icons").diagnostics
|
||||
local dsigns = require("config.icons").diagnostics
|
||||
|
||||
-- This provides the diagnostics signs near the line numbers
|
||||
for type, icon in pairs(signs) do
|
||||
local hl = "DiagnosticSign" .. type
|
||||
-- vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" })
|
||||
vim.diagnostic.config(hl, { text = icon, texthl = hl, numhl = "" })
|
||||
end
|
||||
vim.diagnostic.config({
|
||||
virtual_text = true,
|
||||
virtual_lines = false,
|
||||
severity_sort = true,
|
||||
update_in_insert = true,
|
||||
float = true,
|
||||
signs = {
|
||||
text = {
|
||||
[vim.diagnostic.severity.HINT] = dsigns.Hint,
|
||||
[vim.diagnostic.severity.WARN] = dsigns.Warning,
|
||||
[vim.diagnostic.severity.ERROR] = dsigns.Error,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue