refactor(nvim): set proper priorities for signs

This commit is contained in:
Price Hiller 2023-04-17 06:23:01 -05:00
parent 477288834b
commit 34481b199a
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8
2 changed files with 8 additions and 6 deletions

View File

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

View File

@ -811,6 +811,7 @@ lazy.setup({
after = "kanagawa.nvim",
config = function()
require("smoothcursor").setup({
priority = 8,
fancy = {
enable = true,
head = { cursor = "", texthl = "SmoothCursorCursor", linehl = nil },