From ea2aed44ff55fa1c62a90fefd0fd1cfa5fe81d36 Mon Sep 17 00:00:00 2001 From: Ava Gaiety W Date: Sat, 21 Jun 2025 18:55:28 -0600 Subject: [PATCH] correct sign-define deprecation warning --- nvim/lua/plugins/lsp.lua | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua index 3e7c572..db62e7d 100644 --- a/nvim/lua/plugins/lsp.lua +++ b/nvim/lua/plugins/lsp.lua @@ -50,21 +50,8 @@ return { -- Diagnostics --- - 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, + virtual_text = true, severity_sort = true, float = { border = 'rounded',