mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-25 14:01:03 +00:00
lua line add more colors
This commit is contained in:
parent
0eb08a8e3a
commit
091fbb81f1
1 changed files with 45 additions and 3 deletions
|
|
@ -13,9 +13,13 @@ local colors = {
|
||||||
lime = "#00ff00",
|
lime = "#00ff00",
|
||||||
yellow = "#ffff00",
|
yellow = "#ffff00",
|
||||||
blue = "#0000ff",
|
blue = "#0000ff",
|
||||||
|
lblue = "#00b4c5",
|
||||||
|
lgreen = "#00bf7d",
|
||||||
fuchsia = "#ff00ff",
|
fuchsia = "#ff00ff",
|
||||||
aqua = "#00ffff",
|
aqua = "#00ffff",
|
||||||
white = "#ffffff",
|
white = "#ffffff",
|
||||||
|
grey = "#444444",
|
||||||
|
brown = "#c44601",
|
||||||
}
|
}
|
||||||
|
|
||||||
local custom16Colors = {
|
local custom16Colors = {
|
||||||
|
|
@ -33,6 +37,38 @@ local custom16Colors = {
|
||||||
c = { fg = colors.silver, bg = colors.black },
|
c = { fg = colors.silver, bg = colors.black },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
local modernDark = {
|
||||||
|
normal = {
|
||||||
|
a = { fg = colors.white, bg = colors.grey, gui = "bold" },
|
||||||
|
b = { fg = colors.white, bg = colors.gray },
|
||||||
|
c = { fg = colors.white, bg = colors.black },
|
||||||
|
},
|
||||||
|
insert = { a = { fg = colors.white, bg = colors.green, gui = "bold" } },
|
||||||
|
visual = { a = { fg = colors.black, bg = colors.hlGreen, gui = "bold" } },
|
||||||
|
replace = { a = { fg = colors.white, bg = colors.red, gui = "bold" } },
|
||||||
|
inactive = {
|
||||||
|
a = { fg = colors.silver, bg = colors.gray, gui = "bold" },
|
||||||
|
b = { fg = colors.gray, bg = colors.black },
|
||||||
|
c = { fg = colors.silver, bg = colors.black },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
local modernVibrant = {
|
||||||
|
normal = {
|
||||||
|
a = { fg = colors.white, bg = colors.brown, gui = "bold" },
|
||||||
|
b = { fg = colors.white, bg = colors.gray },
|
||||||
|
c = { fg = colors.white, bg = colors.black },
|
||||||
|
},
|
||||||
|
insert = { a = { fg = colors.black, bg = colors.lgreen, gui = "bold" } },
|
||||||
|
visual = { a = { fg = colors.black, bg = colors.hlGreen, gui = "bold" } },
|
||||||
|
replace = { a = { fg = colors.white, bg = colors.red, gui = "bold" } },
|
||||||
|
inactive = {
|
||||||
|
a = { fg = colors.silver, bg = colors.gray, gui = "bold" },
|
||||||
|
b = { fg = colors.gray, bg = colors.black },
|
||||||
|
c = { fg = colors.silver, bg = colors.black },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
|
|
@ -43,7 +79,7 @@ return {
|
||||||
require("lualine").setup({
|
require("lualine").setup({
|
||||||
options = {
|
options = {
|
||||||
icons_enabled = true,
|
icons_enabled = true,
|
||||||
theme = custom16Colors,
|
theme = modernVibrant,
|
||||||
component_separators = { left = "", right = "" },
|
component_separators = { left = "", right = "" },
|
||||||
section_separators = { left = "", right = "" },
|
section_separators = { left = "", right = "" },
|
||||||
disabled_filetypes = {
|
disabled_filetypes = {
|
||||||
|
|
@ -68,7 +104,7 @@ return {
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
lualine_b = { "branch", "diff", "diagnostics" },
|
lualine_b = {}, -- { "branch", "diff", "diagnostics" },
|
||||||
lualine_c = {
|
lualine_c = {
|
||||||
{
|
{
|
||||||
"filename",
|
"filename",
|
||||||
|
|
@ -91,10 +127,12 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
lualine_x = {
|
lualine_x = {
|
||||||
|
-- mode: e.g: Recording macro
|
||||||
{
|
{
|
||||||
require("noice").api.status.mode.get,
|
require("noice").api.status.mode.get,
|
||||||
cond = require("noice").api.status.mode.has,
|
cond = require("noice").api.status.mode.has,
|
||||||
},
|
},
|
||||||
|
-- last command: e.g: cw
|
||||||
{
|
{
|
||||||
require("noice").api.status.command.get,
|
require("noice").api.status.command.get,
|
||||||
cond = require("noice").api.status.command.has,
|
cond = require("noice").api.status.command.has,
|
||||||
|
|
@ -108,7 +146,11 @@ return {
|
||||||
mac = "", -- e711
|
mac = "", -- e711
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"filetype",
|
{
|
||||||
|
"filetype",
|
||||||
|
colored = false,
|
||||||
|
icon = { align = "left" },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
lualine_y = { "progress" },
|
lualine_y = { "progress" },
|
||||||
lualine_z = { "location" },
|
lualine_z = { "location" },
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue