refactor(nvim): improve winbar lsp icon

This commit is contained in:
Price Hiller 2024-03-11 22:27:27 -05:00
parent c319078ded
commit 26398a67c9
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -350,8 +350,7 @@ return {
}, },
{ {
condition = function() condition = function()
return not vim.bo.modifiable return not vim.bo.modifiable or vim.bo.readonly
or vim.bo.readonly
end, end,
provider = "", provider = "",
hl = { fg = colors.roninYellow }, hl = { fg = colors.roninYellow },
@ -529,6 +528,9 @@ return {
}, },
} }
local ActiveWinbar = { local ActiveWinbar = {
init = function(self)
self.bufnr = vim.api.nvim_get_current_buf()
end,
condition = conditions.is_active, condition = conditions.is_active,
{ {
{ {
@ -554,7 +556,9 @@ return {
hl = { fg = colors.oniViolet, bg = utils.get_highlight("WinBarNC").bg }, hl = { fg = colors.oniViolet, bg = utils.get_highlight("WinBarNC").bg },
}, },
{ {
provider = "", provider = function(self)
return " " .. (vim.diagnostic.is_disabled(self.bufnr) and "󱃓 " or"󰪥 " )
end,
hl = { hl = {
bg = colors.oniViolet, bg = colors.oniViolet,
fg = colors.sumiInk0, fg = colors.sumiInk0,