1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim/lua/user/plugins/ui/statusline.lua: move filetype from winbar and minor adjustments

This commit is contained in:
Henrik Hautakoski 2026-04-04 14:37:27 +02:00
parent 87de16407b
commit 0423818458

View file

@ -84,14 +84,14 @@ local options = {
"mode", "mode",
}, },
lualine_b = { lualine_b = {
{"branch"}, {"branch", icon = icons.vcs.branch },
{ {
"diagnostics", "diagnostics",
symbols = { symbols = {
error = icons.diagnostics.error .. " ", error = icons.diagnostics.error .. " ",
warn = icons.diagnostics.warn .. " ", warn = icons.diagnostics.warn .. " ",
info = icons.diagnostics.info .. " ", info = icons.diagnostics.info .. " ",
hint = icons.diagnostics.hint .. " ", hint = icons.diagnostics.hint .. " ",
}, },
}, },
{ {
@ -102,6 +102,20 @@ local options = {
removed = icons.diff.removed .. " ", 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", "lsp-status",
disabled_filetypes = { disabled_filetypes = {
@ -115,14 +129,6 @@ local options = {
end end
end end
}, },
linter,
},
lualine_c = {},
lualine_x = {
{
"filetype",
cond = is_not_popup
},
{ {
"fileformat", "fileformat",
symbols = { symbols = {
@ -132,39 +138,11 @@ local options = {
} }
}, },
indent_settings, indent_settings,
},
lualine_y = {
"location", "location",
"progress",
}, },
lualine_y = {},
lualine_z = {}, 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 = { extensions = {
"lazy", "lazy",
"neo-tree", "neo-tree",