mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 08:53:31 +02:00
add: update config overide lualine
This commit is contained in:
parent
7b323af8cf
commit
6c7fc996cd
1 changed files with 11 additions and 2 deletions
|
@ -115,6 +115,15 @@ return {
|
||||||
return icons.ui.Tab .. " " .. vim.api.nvim_buf_get_option(0, "shiftwidth")
|
return icons.ui.Tab .. " " .. vim.api.nvim_buf_get_option(0, "shiftwidth")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local mode = {
|
||||||
|
"mode",
|
||||||
|
padding = 1,
|
||||||
|
separator = { left = "", right = "" },
|
||||||
|
right_padding = 3,
|
||||||
|
fmt = function(str)
|
||||||
|
return " " .. str
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
local colors = {
|
local colors = {
|
||||||
|
@ -187,7 +196,7 @@ return {
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = {
|
lualine_a = {
|
||||||
{ "mode", separator = { left = "" }, right_padding = 3 },
|
mode,
|
||||||
},
|
},
|
||||||
-- lualine_b = { "filename", "branch" },
|
-- lualine_b = { "filename", "branch" },
|
||||||
lualine_b = { "branch" },
|
lualine_b = { "branch" },
|
||||||
|
@ -195,7 +204,7 @@ return {
|
||||||
lualine_x = { diff, spaces, "filetype" },
|
lualine_x = { diff, spaces, "filetype" },
|
||||||
lualine_y = { "progress" },
|
lualine_y = { "progress" },
|
||||||
lualine_z = {
|
lualine_z = {
|
||||||
{ "location", separator = { right = "" }, left_padding = 3 },
|
{ "location", separator = { left = "", right = "" }, left_padding = 3 },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
inactive_sections = {
|
inactive_sections = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue