refactor(nvim): remove invalid priority assignment in lspSymbol

This commit is contained in:
Price Hiller 2024-02-20 17:39:41 -06:00
parent 82f65bc4ed
commit 3e4d1f63ec
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -1,15 +1,14 @@
local M = {} local M = {}
M.setup = function() M.setup = function()
local function lspSymbol(name, icon, priority) local function lspSymbol(name, icon)
local hl = "DiagnosticSign" .. name local hl = "DiagnosticSign" .. name
vim.fn.sign_define(hl, { text = icon, numhl = hl, texthl = hl, priority = priority }) vim.fn.sign_define(hl, { text = icon, numhl = hl, texthl = hl })
end end
lspSymbol("Error", "󰅙")
lspSymbol("Error", "󰅙", 20) lspSymbol("Warn", "")
lspSymbol("Warn", "", 15) lspSymbol("Info", "󰋼")
lspSymbol("Info", "󰋼", 10) lspSymbol("Hint", "")
lspSymbol("Hint", "", 10)
vim.diagnostic.config({ vim.diagnostic.config({
virtual_text = false, virtual_text = false,