|
@@ -41,8 +41,8 @@ table.insert(gls.left, {
|
|
vim.api.nvim_command("hi GalaxyViMode guifg=" .. mode_color[vim.fn.mode()])
|
|
vim.api.nvim_command("hi GalaxyViMode guifg=" .. mode_color[vim.fn.mode()])
|
|
return "▊"
|
|
return "▊"
|
|
end,
|
|
end,
|
|
- separator_highlight = "StatusLineSeparator",
|
|
|
|
- highlight = "StatusLineNC",
|
|
|
|
|
|
+ separator_highlight = { "NONE", colors.bg },
|
|
|
|
+ highlight = { "NONE", colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
-- print(vim.fn.getbufvar(0, 'ts'))
|
|
-- print(vim.fn.getbufvar(0, 'ts'))
|
|
@@ -55,8 +55,8 @@ table.insert(gls.left, {
|
|
end,
|
|
end,
|
|
condition = condition.check_git_workspace,
|
|
condition = condition.check_git_workspace,
|
|
separator = " ",
|
|
separator = " ",
|
|
- separator_highlight = "StatusLineSeparator",
|
|
|
|
- highlight = "StatusLineGit",
|
|
|
|
|
|
+ separator_highlight = { "NONE", colors.bg },
|
|
|
|
+ highlight = { colors.orange, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
|
|
@@ -65,8 +65,8 @@ table.insert(gls.left, {
|
|
provider = "GitBranch",
|
|
provider = "GitBranch",
|
|
condition = condition.check_git_workspace,
|
|
condition = condition.check_git_workspace,
|
|
separator = " ",
|
|
separator = " ",
|
|
- separator_highlight = "StatusLineSeparator",
|
|
|
|
- highlight = "StatusLineNC",
|
|
|
|
|
|
+ separator_highlight = { "NONE", colors.bg },
|
|
|
|
+ highlight = { colors.grey, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
|
|
@@ -75,7 +75,7 @@ table.insert(gls.left, {
|
|
provider = "DiffAdd",
|
|
provider = "DiffAdd",
|
|
condition = condition.hide_in_width,
|
|
condition = condition.hide_in_width,
|
|
icon = " ",
|
|
icon = " ",
|
|
- highlight = "StatusLineGitAdd",
|
|
|
|
|
|
+ highlight = { colors.green, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
|
|
@@ -84,7 +84,7 @@ table.insert(gls.left, {
|
|
provider = "DiffModified",
|
|
provider = "DiffModified",
|
|
condition = condition.hide_in_width,
|
|
condition = condition.hide_in_width,
|
|
icon = " 柳",
|
|
icon = " 柳",
|
|
- highlight = "StatusLineGitChange",
|
|
|
|
|
|
+ highlight = { colors.blue, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
|
|
@@ -93,7 +93,7 @@ table.insert(gls.left, {
|
|
provider = "DiffRemove",
|
|
provider = "DiffRemove",
|
|
condition = condition.hide_in_width,
|
|
condition = condition.hide_in_width,
|
|
icon = " ",
|
|
icon = " ",
|
|
- highlight = "StatusLineGitDelete",
|
|
|
|
|
|
+ highlight = { colors.red, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
|
|
@@ -102,7 +102,7 @@ table.insert(gls.left, {
|
|
provider = function()
|
|
provider = function()
|
|
return " "
|
|
return " "
|
|
end,
|
|
end,
|
|
- highlight = "StatusLineGitDelete",
|
|
|
|
|
|
+ highlight = { colors.grey, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
-- get output from shell command
|
|
-- get output from shell command
|
|
@@ -146,8 +146,8 @@ end
|
|
table.insert(gls.left, {
|
|
table.insert(gls.left, {
|
|
VirtualEnv = {
|
|
VirtualEnv = {
|
|
provider = PythonEnv,
|
|
provider = PythonEnv,
|
|
- highlight = "StatusLineTreeSitter",
|
|
|
|
event = "BufEnter",
|
|
event = "BufEnter",
|
|
|
|
+ highlight = { colors.green, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
|
|
@@ -155,15 +155,14 @@ table.insert(gls.right, {
|
|
DiagnosticError = {
|
|
DiagnosticError = {
|
|
provider = "DiagnosticError",
|
|
provider = "DiagnosticError",
|
|
icon = " ",
|
|
icon = " ",
|
|
- highlight = "StatusLineLspDiagnosticsError",
|
|
|
|
|
|
+ highlight = { colors.red, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
table.insert(gls.right, {
|
|
table.insert(gls.right, {
|
|
DiagnosticWarn = {
|
|
DiagnosticWarn = {
|
|
provider = "DiagnosticWarn",
|
|
provider = "DiagnosticWarn",
|
|
icon = " ",
|
|
icon = " ",
|
|
-
|
|
|
|
- highlight = "StatusLineLspDiagnosticsWarning",
|
|
|
|
|
|
+ highlight = { colors.orange, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
|
|
@@ -171,8 +170,7 @@ table.insert(gls.right, {
|
|
DiagnosticInfo = {
|
|
DiagnosticInfo = {
|
|
provider = "DiagnosticInfo",
|
|
provider = "DiagnosticInfo",
|
|
icon = " ",
|
|
icon = " ",
|
|
-
|
|
|
|
- highlight = "StatusLineLspDiagnosticsInformation",
|
|
|
|
|
|
+ highlight = { colors.yellow, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
|
|
@@ -180,8 +178,7 @@ table.insert(gls.right, {
|
|
DiagnosticHint = {
|
|
DiagnosticHint = {
|
|
provider = "DiagnosticHint",
|
|
provider = "DiagnosticHint",
|
|
icon = " ",
|
|
icon = " ",
|
|
-
|
|
|
|
- highlight = "StatusLineLspDiagnosticsHint",
|
|
|
|
|
|
+ highlight = { colors.blue, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
|
|
@@ -194,8 +191,8 @@ table.insert(gls.right, {
|
|
return ""
|
|
return ""
|
|
end,
|
|
end,
|
|
separator = " ",
|
|
separator = " ",
|
|
- separator_highlight = "StatusLineSeparator",
|
|
|
|
- highlight = "StatusLineTreeSitter",
|
|
|
|
|
|
+ separator_highlight = { "NONE", colors.bg },
|
|
|
|
+ highlight = { colors.green, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
|
|
@@ -238,7 +235,7 @@ table.insert(gls.right, {
|
|
return true
|
|
return true
|
|
end,
|
|
end,
|
|
icon = " ",
|
|
icon = " ",
|
|
- highlight = "StatusLineNC",
|
|
|
|
|
|
+ highlight = { colors.grey, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
|
|
@@ -246,8 +243,8 @@ table.insert(gls.right, {
|
|
LineInfo = {
|
|
LineInfo = {
|
|
provider = "LineColumn",
|
|
provider = "LineColumn",
|
|
separator = " ",
|
|
separator = " ",
|
|
- separator_highlight = "StatusLineSeparator",
|
|
|
|
- highlight = "StatusLineNC",
|
|
|
|
|
|
+ separator_highlight = { "NONE", colors.bg },
|
|
|
|
+ highlight = { colors.grey, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
|
|
@@ -255,8 +252,8 @@ table.insert(gls.right, {
|
|
PerCent = {
|
|
PerCent = {
|
|
provider = "LinePercent",
|
|
provider = "LinePercent",
|
|
separator = " ",
|
|
separator = " ",
|
|
- separator_highlight = "StatusLineSeparator",
|
|
|
|
- highlight = "StatusLineNC",
|
|
|
|
|
|
+ separator_highlight = { "NONE", colors.bg },
|
|
|
|
+ highlight = { colors.grey, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
|
|
@@ -267,8 +264,8 @@ table.insert(gls.right, {
|
|
end,
|
|
end,
|
|
condition = condition.hide_in_width,
|
|
condition = condition.hide_in_width,
|
|
separator = " ",
|
|
separator = " ",
|
|
- separator_highlight = "StatusLineSeparator",
|
|
|
|
- highlight = "StatusLineNC",
|
|
|
|
|
|
+ separator_highlight = { "NONE", colors.bg },
|
|
|
|
+ highlight = { colors.grey, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
|
|
@@ -277,8 +274,8 @@ table.insert(gls.right, {
|
|
provider = "FileTypeName",
|
|
provider = "FileTypeName",
|
|
condition = condition.hide_in_width,
|
|
condition = condition.hide_in_width,
|
|
separator = " ",
|
|
separator = " ",
|
|
- separator_highlight = "StatusLineSeparator",
|
|
|
|
- highlight = "StatusLineNC",
|
|
|
|
|
|
+ separator_highlight = { "NONE", colors.bg },
|
|
|
|
+ highlight = { colors.grey, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
|
|
@@ -287,8 +284,8 @@ table.insert(gls.right, {
|
|
provider = "FileEncode",
|
|
provider = "FileEncode",
|
|
condition = condition.hide_in_width,
|
|
condition = condition.hide_in_width,
|
|
separator = " ",
|
|
separator = " ",
|
|
- separator_highlight = "StatusLineSeparator",
|
|
|
|
- highlight = "StatusLineNC",
|
|
|
|
|
|
+ separator_highlight = { "NONE", colors.bg },
|
|
|
|
+ highlight = { colors.grey, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
|
|
@@ -298,8 +295,8 @@ table.insert(gls.right, {
|
|
return " "
|
|
return " "
|
|
end,
|
|
end,
|
|
separator = " ",
|
|
separator = " ",
|
|
- separator_highlight = "StatusLineSeparator",
|
|
|
|
- highlight = "StatusLineNC",
|
|
|
|
|
|
+ separator_highlight = { "NONE", colors.bg },
|
|
|
|
+ highlight = { colors.grey, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
|
|
@@ -307,8 +304,8 @@ table.insert(gls.short_line_left, {
|
|
BufferType = {
|
|
BufferType = {
|
|
provider = "FileTypeName",
|
|
provider = "FileTypeName",
|
|
separator = " ",
|
|
separator = " ",
|
|
- separator_highlight = "StatusLineSeparator",
|
|
|
|
- highlight = "StatusLineNC",
|
|
|
|
|
|
+ separator_highlight = { "NONE", colors.bg },
|
|
|
|
+ highlight = { colors.grey, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
|
|
@@ -316,8 +313,7 @@ table.insert(gls.short_line_left, {
|
|
SFileName = {
|
|
SFileName = {
|
|
provider = "SFileName",
|
|
provider = "SFileName",
|
|
condition = condition.buffer_not_empty,
|
|
condition = condition.buffer_not_empty,
|
|
-
|
|
|
|
- highlight = "StatusLineNC",
|
|
|
|
|
|
+ highlight = { colors.grey, colors.bg },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
|
|
|