aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/lualine.lua
blob: 397e4817f5c83839aafa7c3e9360ca6edb72ca4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
local config = function()
  require("lualine").setup({
    options = {
      theme = "catppuccin",
      globalstatus = true,
      disabled_filetypes = { "toggleterm", "lazy", "oil", "dashboard", "TelescopePrompt", "oil_preview" }
    },
    sections = {
      lualine_a = { "mode" },
      lualine_b = { "branch", "diff",
        {
          "diagnostics",
          sections = { "error", "warn", "info", "hint" },
          symbols = { error = " ", warn = " ", info = " ", hint = " " },
        }
      },
      lualine_c = {
        {
          require("lazy.status").updates,
          cond = require("lazy.status").has_updates,
          color = { fg = "#ff9e64" },
        },
      },
    },
  })
end

return {
  "nvim-lualine/lualine.nvim",
  lazy = true,
  event = "VeryLazy",
  -- event = { "BufReadPost", "BufWritePost", "BufNewFile" },
  config = config,
}