diff options
| author | filip <“filip.rabiega@gmail.com”> | 2026-02-14 22:40:01 +0100 |
|---|---|---|
| committer | filip <“filip.rabiega@gmail.com”> | 2026-02-14 22:40:01 +0100 |
| commit | 5be4048246def725c11499c8cff8f77da4cd47c4 (patch) | |
| tree | 7bd62e82c66e4a94a93db73810fa37b1f38c6306 /lualine.lua | |
| parent | 49f248ea71b796d44c5080926f31f585d910f66c (diff) | |
| download | lazy-plugins-5be4048246def725c11499c8cff8f77da4cd47c4.tar.gz lazy-plugins-5be4048246def725c11499c8cff8f77da4cd47c4.tar.bz2 lazy-plugins-5be4048246def725c11499c8cff8f77da4cd47c4.zip | |
fix stuff
Diffstat (limited to 'lualine.lua')
| -rw-r--r-- | lualine.lua | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/lualine.lua b/lualine.lua index c6ea8ad..0794ecf 100644 --- a/lualine.lua +++ b/lualine.lua @@ -1,4 +1,49 @@ return { "nvim-lualine/lualine.nvim", dependencies = { "nvim-tree/nvim-web-devicons" }, + + config = function() + -- Function to show macro recording status + local function recording() + local reg = vim.fn.reg_recording() + if reg ~= "" then + return "REC @" .. reg + end + return "" + end + + require("lualine").setup({ + options = { + theme = "auto", + component_separators = "", + section_separators = "", + globalstatus = true, + }, + + sections = { + lualine_a = { "mode" }, + lualine_b = {}, + lualine_c = { + { "filename", path = 1 }, + }, + + lualine_x = { + recording, + "diagnostics", + }, + + lualine_y = { "filetype" }, + lualine_z = { "location" }, + }, + + inactive_sections = { + lualine_a = {}, + lualine_b = {}, + lualine_c = { "filename" }, + lualine_x = {}, + lualine_y = {}, + lualine_z = {}, + }, + }) + end, } |
