dotfiles/home/dot_config/nvim/lua/config/diagnostics.lua

8 lines
328 B
Lua

local signs = 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