Skip to content

Commit

Permalink
unify variable name style.
Browse files Browse the repository at this point in the history
Signed-off-by: ayamir <lgt986452565@gmail.com>
  • Loading branch information
ayamir committed Oct 21, 2023
1 parent 55732e1 commit 1363a5f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lua/modules/configs/ui/lualine.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
return function()
local colorscheme = vim.g.colors_name
local _is_catppuccin = string.find(colorscheme, "catppuccin") ~= nil
local is_catppuccin = string.find(colorscheme, "catppuccin") ~= nil
local colors = require("modules.utils").get_palette()
local icons = {
diagnostics = require("modules.utils.icons").get("diagnostics", true),
Expand Down Expand Up @@ -99,7 +99,7 @@ return function()
return ""
end,
padding = 0,
color = _is_catppuccin and utils.gen_hl("surface1", true, true) or nil,
color = is_catppuccin and utils.gen_hl("surface1", true, true) or nil,
},

file_status = {
Expand Down Expand Up @@ -151,7 +151,7 @@ return function()
return next(available_servers) == nil and icons.misc.NoActiveLsp
or string.format("%s[%s]", icons.misc.LspAvailable, table.concat(available_servers, ", "))
end,
color = _is_catppuccin and utils.gen_hl("blue", true, true, nil, "bold") or nil,
color = is_catppuccin and utils.gen_hl("blue", true, true, nil, "bold") or nil,
cond = conditionals.has_enough_room,
},

Expand Down Expand Up @@ -180,7 +180,7 @@ return function()
end
return ""
end,
color = _is_catppuccin and utils.gen_hl("green", true, true) or nil,
color = is_catppuccin and utils.gen_hl("green", true, true) or nil,
cond = conditionals.has_enough_room,
},

Expand All @@ -195,7 +195,7 @@ return function()
function()
return icons.ui.FolderWithHeart .. utils.abbreviate_path(vim.fs.normalize(vim.fn.getcwd()))
end,
color = _is_catppuccin and utils.gen_hl("subtext0", true, true, nil, "bold") or nil,
color = is_catppuccin and utils.gen_hl("subtext0", true, true, nil, "bold") or nil,
},

file_location = {
Expand Down Expand Up @@ -244,7 +244,7 @@ return function()
{
"branch",
icon = icons.git_nosep.Branch,
color = _is_catppuccin and utils.gen_hl("subtext0", true, true, nil, "bold") or nil,
color = is_catppuccin and utils.gen_hl("subtext0", true, true, nil, "bold") or nil,
cond = conditionals.has_git,
},
{
Expand All @@ -256,7 +256,7 @@ return function()
},
source = diff_source,
colored = false,
color = _is_catppuccin and utils.gen_hl("subtext0", true, true) or nil,
color = is_catppuccin and utils.gen_hl("subtext0", true, true) or nil,
cond = conditionals.has_git,
padding = { right = 1 },
},
Expand Down

0 comments on commit 1363a5f

Please sign in to comment.