Browse Source

feat: add buffers count to lualine

master
Tovi Jaeschke-Rogers 1 week ago
parent
commit
83b0b2afc1
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      .config/nvim/lua/plugins/lualine.lua

+ 6
- 0
.config/nvim/lua/plugins/lualine.lua View File

@ -25,6 +25,12 @@ return {
{ "branch" }, { "branch" },
{ "diff" }, { "diff" },
{ "diagnostics" }, { "diagnostics" },
{
function()
local buffers = vim.fn.getbufinfo({ buflisted = true })
return "Buffers: " .. #buffers
end,
},
}, },
lualine_c = { lualine_c = {
{ "filename", file_status = true, path = 1 }, { "filename", file_status = true, path = 1 },


Loading…
Cancel
Save