refactor(nvim): set proper priorities for signs
This commit is contained in:
parent
477288834b
commit
34481b199a
@ -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" },
|
||||
|
@ -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 },
|
||||
|
Loading…
Reference in New Issue
Block a user