mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
update: update config lualine
This commit is contained in:
parent
7f1d7df0c8
commit
756dfa19fd
1 changed files with 11 additions and 6 deletions
|
@ -91,11 +91,14 @@ end
|
|||
|
||||
local mode = {
|
||||
"mode",
|
||||
padding = 1,
|
||||
fmt = function(str)
|
||||
if sts_mode == 0 then
|
||||
return "--" .. str .. "--"
|
||||
-- return "--" .. str .. "--"
|
||||
return str
|
||||
else
|
||||
return icon_mode .. str
|
||||
-- return icon_mode .. str
|
||||
return icon_mode
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
@ -111,6 +114,7 @@ local branch = {
|
|||
icons_enabled = true,
|
||||
--icon = "",
|
||||
icon = icons.git.Branch,
|
||||
padding = { right = 1 },
|
||||
}
|
||||
|
||||
local location = {
|
||||
|
@ -245,9 +249,10 @@ lualine.setup({
|
|||
},
|
||||
always_divide_middle = true,
|
||||
},
|
||||
|
||||
sections = {
|
||||
lualine_a = { branch },
|
||||
lualine_b = { mode },
|
||||
lualine_a = { mode },
|
||||
lualine_b = { branch },
|
||||
lualine_c = { diagnostics, lsp_info, lsp_progress },
|
||||
-- lualine_c = { file_name, lsp_info },
|
||||
-- lualine_x = { "encoding", "fileformat", "filetype" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue