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 = {} local M = {}
M.setup = function() M.setup = function()
local function lspSymbol(name, icon) local function lspSymbol(name, icon, priority)
local hl = "DiagnosticSign" .. name 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 end
lspSymbol("Error", "") lspSymbol("Error", "󰅙", 20)
lspSymbol("Warn", "") lspSymbol("Warn", "", 15)
lspSymbol("Info", "") lspSymbol("Info", "󰋼", 10)
lspSymbol("Hint", "") lspSymbol("Hint", "", 10)
local border = { local border = {
{ "", "FloatBorder" }, { "", "FloatBorder" },

View File

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