Skip to content

Commit

Permalink
fix that damn sign!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
HE7086 committed Aug 5, 2024
1 parent 73a40ac commit 030bcba
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions nvim/.config/nvim/lua/plugins/heirline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,28 @@ return {
end,
},

{ provider = " %m%r" },
{ provider = "%m%r" },

{
provider = "[sudo]",
hl = { fg = "red" },
surround = {
separator = "left",
fallthrough = false,
{
provider = "[sudo]",
hl = { fg = "red" },
condition = function(self)
return sudoedit.detected(self.bufnr)
end,
},
{
provider = "[root]",
hl = { fg = "red" },
surround = {
separator = "left",
},
condition = function()
return vim.uv.getuid() == 0
end,
},
condition = function(self)
return sudoedit.detected(self.bufnr)
end,
},

status.component.fill(),

status.component.file_info({
Expand Down

0 comments on commit 030bcba

Please sign in to comment.