aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/lualine.lua
blob: 495822ec6102ef0c67120d6039b14c0d46265308 (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
local opts = {
  options = {
    theme = "auto",
    globalstatus = true,
    disabled_filetypes = { "toggleterm", "lazy", "oil", "dashboard", "TelescopePrompt", "oil_preview", "ministarter" }
  },
  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" },
      },
    },
  },
}

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