mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 22:07:59 +00:00
[neovim] change lualine look&feel
This commit is contained in:
parent
a642c809af
commit
2d91bee816
@ -11,26 +11,26 @@ local diagnostics = {
|
|||||||
"diagnostics",
|
"diagnostics",
|
||||||
sources = { "nvim_diagnostic" },
|
sources = { "nvim_diagnostic" },
|
||||||
sections = { "error", "warn" },
|
sections = { "error", "warn" },
|
||||||
symbols = { error = " ", warn = " " },
|
symbols = { error = " ", warn = "!" },
|
||||||
colored = false,
|
colored = false,
|
||||||
always_visible = false,
|
always_visible = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
local diff = {
|
local diff = {
|
||||||
"diff",
|
"diff",
|
||||||
colored = false,
|
colored = false,
|
||||||
symbols = { added = "", modified = "", removed = "" }, -- changes diff symbols
|
symbols = { added = "+", modified = "", removed = "" },
|
||||||
cond = hide_in_width,
|
cond = hide_in_width,
|
||||||
}
|
}
|
||||||
|
|
||||||
local filetype = {
|
local filetype = {
|
||||||
"filetype",
|
"filetype",
|
||||||
icons_enabled = false,
|
colored = false,
|
||||||
}
|
}
|
||||||
|
|
||||||
local location = {
|
local lsp_progress = {
|
||||||
"location",
|
"lsp_progress",
|
||||||
padding = 0,
|
display_components = { "spinner" },
|
||||||
}
|
}
|
||||||
|
|
||||||
local spaces = function()
|
local spaces = function()
|
||||||
@ -65,17 +65,11 @@ vim.g.gitblame_message_template = "<author>, <date>"
|
|||||||
lualine.setup({
|
lualine.setup({
|
||||||
options = {
|
options = {
|
||||||
globalstatus = true,
|
globalstatus = true,
|
||||||
icons_enabled = true,
|
|
||||||
theme = "auto",
|
|
||||||
component_separators = { left = "", right = " " },
|
|
||||||
section_separators = { left = "", right = "" },
|
|
||||||
disabled_filetypes = { "alpha", "dashboard" },
|
|
||||||
always_divide_middle = true,
|
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { "mode" },
|
lualine_a = { "mode" },
|
||||||
lualine_b = { "branch", venv },
|
lualine_b = { "branch", venv },
|
||||||
lualine_c = { diagnostics, { "filename", path = 3 }, "searchcount", "lsp_progress" },
|
lualine_c = { diagnostics, { "filename", path = 3 }, "searchcount", lsp_progress },
|
||||||
lualine_x = {
|
lualine_x = {
|
||||||
{ gitblame.get_current_blame_text, cond = gitblame.is_blame_text_available },
|
{ gitblame.get_current_blame_text, cond = gitblame.is_blame_text_available },
|
||||||
diff,
|
diff,
|
||||||
@ -83,7 +77,7 @@ lualine.setup({
|
|||||||
"encoding",
|
"encoding",
|
||||||
filetype,
|
filetype,
|
||||||
},
|
},
|
||||||
lualine_y = { location },
|
lualine_y = { "progress" },
|
||||||
lualine_z = { "progress" },
|
lualine_z = { "location" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user