From 08193ed385eb52663a21a652aeb7e3cb08d27d3e Mon Sep 17 00:00:00 2001 From: Petr Hrdina Date: Wed, 14 Jan 2026 23:19:19 +0100 Subject: [PATCH] Nicer status line --- lazy-lock.json | 1 + lua/plugins/ui.lua | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/lazy-lock.json b/lazy-lock.json index 9e1f5bd..b49a799 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -4,6 +4,7 @@ "cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" }, "gruvbox.nvim": { "branch": "main", "commit": "a472496e1a4465a2dd574389dcf6cdb29af9bf1b" }, "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" }, + "lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "80c0130c5f16b551865a69e832f1feadeedb5fbe" }, "mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" }, "nvim-autopairs": { "branch": "master", "commit": "c2a0dd0d931d0fb07665e1fedb1ea688da3b80b4" }, diff --git a/lua/plugins/ui.lua b/lua/plugins/ui.lua index 8e253e7..389acd6 100644 --- a/lua/plugins/ui.lua +++ b/lua/plugins/ui.lua @@ -33,4 +33,33 @@ return { vim.keymap.set("n", "e", "NvimTreeToggle", { 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, + }, }