From a5d2c8d5d646673864c11f46d49412aa1c2ebae7 Mon Sep 17 00:00:00 2001 From: ericmarin Date: Wed, 29 Apr 2026 21:12:05 +0200 Subject: changed wallpapermenu script --- nvim/lua/plugins/nvim-lspconfig.lua | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'nvim/lua') diff --git a/nvim/lua/plugins/nvim-lspconfig.lua b/nvim/lua/plugins/nvim-lspconfig.lua index e464144..4c69816 100644 --- a/nvim/lua/plugins/nvim-lspconfig.lua +++ b/nvim/lua/plugins/nvim-lspconfig.lua @@ -3,11 +3,22 @@ local config = function() local capabilities = require("cmp_nvim_lsp").default_capabilities() -- setting custom signs - local signs = { Error = "", Warn = "", Hint = "", Info = "" } - for type, icon in pairs(signs) do - local hl = "DiagnosticSign" .. type - vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" }) - end + vim.diagnostic.config({ + signs = { + text = { + [vim.diagnostic.severity.ERROR] = '', + [vim.diagnostic.severity.WARN] = '', + [vim.diagnostic.severity.HINT] = '', + [vim.diagnostic.severity.INFO] = '', + }, + linehl = { + [vim.diagnostic.severity.ERROR] = 'ErrorMsg', + }, + numhl = { + [vim.diagnostic.severity.WARN] = 'WarningMsg', + }, + }, + }) vim.api.nvim_create_autocmd('LspAttach', { callback = function(ev) -- cgit v1.2.3