From 5f54ddbdb2181e29438761a3c5078087d62a5c04 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Fri, 9 Aug 2024 02:48:58 +0200 Subject: [PATCH] fix(diagnostics): fix deprecated call --- lua/lsp.lua | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lua/lsp.lua b/lua/lsp.lua index 1a3baae..b6067bf 100644 --- a/lua/lsp.lua +++ b/lua/lsp.lua @@ -108,7 +108,6 @@ end --- Setup diagnostics UI local function setup_diagnostics() - -- https://github.com/neovim/nvim-lspconfig/wiki/UI-Customization#customizing-how-diagnostics-are-displayed vim.diagnostic.config({ underline = true, signs = true, @@ -130,11 +129,6 @@ local function setup_diagnostics() update_in_insert = false, severity_sort = false, }) - local signs = { Error = "E", Warn = "W", Hint = "H", Info = "I" } - for type, icon in pairs(signs) do - local hl = "DiagnosticSign" .. type - vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl }) - end end function M.setup()