refactor(nvim): improve winbar lsp icon
This commit is contained in:
parent
c319078ded
commit
26398a67c9
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user