mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 19:30:01 +02:00
nvim/lua/user/plugins/ui/statusline.lua: move filetype from winbar and minor adjustments
This commit is contained in:
parent
87de16407b
commit
0423818458
1 changed files with 20 additions and 42 deletions
|
|
@ -84,14 +84,14 @@ local options = {
|
|||
"mode",
|
||||
},
|
||||
lualine_b = {
|
||||
{"branch"},
|
||||
{"branch", icon = icons.vcs.branch },
|
||||
{
|
||||
"diagnostics",
|
||||
symbols = {
|
||||
error = icons.diagnostics.error .. " ",
|
||||
warn = icons.diagnostics.warn .. " ",
|
||||
info = icons.diagnostics.info .. " ",
|
||||
hint = icons.diagnostics.hint .. " ",
|
||||
error = icons.diagnostics.error .. " ",
|
||||
warn = icons.diagnostics.warn .. " ",
|
||||
info = icons.diagnostics.info .. " ",
|
||||
hint = icons.diagnostics.hint .. " ",
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -102,6 +102,20 @@ local options = {
|
|||
removed = icons.diff.removed .. " ",
|
||||
},
|
||||
},
|
||||
{ "filetype", icon_only = true, padding = { left = 1, right = 0 } },
|
||||
{
|
||||
"filename",
|
||||
cond = is_not_popup,
|
||||
path = 1,
|
||||
padding = { left = 0, right = 1 },
|
||||
symbols = vim.tbl_deep_extend("force", icons.file_status, {
|
||||
unnamed = "",
|
||||
})
|
||||
},
|
||||
},
|
||||
lualine_c = {},
|
||||
lualine_x = {
|
||||
linter,
|
||||
{
|
||||
"lsp-status",
|
||||
disabled_filetypes = {
|
||||
|
|
@ -115,14 +129,6 @@ local options = {
|
|||
end
|
||||
end
|
||||
},
|
||||
linter,
|
||||
},
|
||||
lualine_c = {},
|
||||
lualine_x = {
|
||||
{
|
||||
"filetype",
|
||||
cond = is_not_popup
|
||||
},
|
||||
{
|
||||
"fileformat",
|
||||
symbols = {
|
||||
|
|
@ -132,39 +138,11 @@ local options = {
|
|||
}
|
||||
},
|
||||
indent_settings,
|
||||
},
|
||||
lualine_y = {
|
||||
"location",
|
||||
"progress",
|
||||
},
|
||||
lualine_y = {},
|
||||
lualine_z = {},
|
||||
},
|
||||
winbar = {
|
||||
lualine_c = {
|
||||
{ "filetype", icon_only = true },
|
||||
{
|
||||
"filename",
|
||||
cond = is_not_popup,
|
||||
path = 1,
|
||||
symbols = vim.tbl_deep_extend("force", icons.file_status, {
|
||||
unnamed = "",
|
||||
})
|
||||
},
|
||||
},
|
||||
},
|
||||
inactive_winbar = {
|
||||
lualine_c = {
|
||||
{ "filetype", icon_only = true },
|
||||
{
|
||||
"filename",
|
||||
cond = is_not_popup,
|
||||
path = 1,
|
||||
symbols = vim.tbl_deep_extend("force", icons.file_status, {
|
||||
unnamed = "",
|
||||
})
|
||||
},
|
||||
},
|
||||
},
|
||||
extensions = {
|
||||
"lazy",
|
||||
"neo-tree",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue