Nicer status line

This commit is contained in:
2026-01-14 23:19:19 +01:00
parent c5d19259e2
commit 08193ed385
2 changed files with 30 additions and 0 deletions

View File

@ -33,4 +33,33 @@ return {
vim.keymap.set("n", "<leader>e", "<cmd>NvimTreeToggle<CR>", { desc = "Toggle file explorer" })
end,
},
{
"nvim-lualine/lualine.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
require("lualine").setup({
options = {
theme = "auto", -- follow your colorscheme
icons_enabled = true,
component_separators = "|",
section_separators = "",
globalstatus = true, -- single statusline
},
sections = {
lualine_a = { "mode" },
lualine_b = { "branch", "diff" },
lualine_c = {
{ "filename", path = 1 }, -- relative path
},
lualine_x = {
"diagnostics",
"encoding",
"filetype",
},
lualine_y = { "progress" },
lualine_z = { "location" },
},
})
end,
},
}