mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
update lualine config
This commit is contained in:
parent
ab75189231
commit
d941be482b
@ -140,13 +140,15 @@ require("lualine").setup {
|
|||||||
options = {
|
options = {
|
||||||
icons_enabled = true,
|
icons_enabled = true,
|
||||||
theme = "auto",
|
theme = "auto",
|
||||||
|
component_separators = { left = '⏐', right = '⏐' },
|
||||||
section_separators = "",
|
section_separators = "",
|
||||||
component_separators = "",
|
|
||||||
disabled_filetypes = {},
|
disabled_filetypes = {},
|
||||||
always_divide_middle = true,
|
always_divide_middle = true,
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { "mode" },
|
lualine_a = {
|
||||||
|
"mode",
|
||||||
|
},
|
||||||
lualine_b = {
|
lualine_b = {
|
||||||
{
|
{
|
||||||
"branch",
|
"branch",
|
||||||
@ -154,6 +156,7 @@ require("lualine").setup {
|
|||||||
-- truncate branch name in case the name is too long
|
-- truncate branch name in case the name is too long
|
||||||
return string.sub(name, 1, 20)
|
return string.sub(name, 1, 20)
|
||||||
end,
|
end,
|
||||||
|
color = { gui = "italic,bold" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
virtual_env,
|
virtual_env,
|
||||||
@ -192,7 +195,7 @@ require("lualine").setup {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
lualine_y = {
|
lualine_y = {
|
||||||
"encoding",
|
{ "encoding", fmt = string.upper },
|
||||||
{
|
{
|
||||||
"fileformat",
|
"fileformat",
|
||||||
symbols = {
|
symbols = {
|
||||||
@ -212,7 +215,8 @@ require("lualine").setup {
|
|||||||
mixed_indent,
|
mixed_indent,
|
||||||
color = "WarningMsg",
|
color = "WarningMsg",
|
||||||
},
|
},
|
||||||
"progress"
|
"location",
|
||||||
|
"progress",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
inactive_sections = {
|
inactive_sections = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user