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 = {
|
||||
icons_enabled = true,
|
||||
theme = "auto",
|
||||
component_separators = { left = '⏐', right = '⏐' },
|
||||
section_separators = "",
|
||||
component_separators = "",
|
||||
disabled_filetypes = {},
|
||||
always_divide_middle = true,
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { "mode" },
|
||||
lualine_a = {
|
||||
"mode",
|
||||
},
|
||||
lualine_b = {
|
||||
{
|
||||
"branch",
|
||||
@ -154,6 +156,7 @@ require("lualine").setup {
|
||||
-- truncate branch name in case the name is too long
|
||||
return string.sub(name, 1, 20)
|
||||
end,
|
||||
color = { gui = "italic,bold" },
|
||||
},
|
||||
{
|
||||
virtual_env,
|
||||
@ -192,7 +195,7 @@ require("lualine").setup {
|
||||
},
|
||||
},
|
||||
lualine_y = {
|
||||
"encoding",
|
||||
{ "encoding", fmt = string.upper },
|
||||
{
|
||||
"fileformat",
|
||||
symbols = {
|
||||
@ -212,7 +215,8 @@ require("lualine").setup {
|
||||
mixed_indent,
|
||||
color = "WarningMsg",
|
||||
},
|
||||
"progress"
|
||||
"location",
|
||||
"progress",
|
||||
},
|
||||
},
|
||||
inactive_sections = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user