nvim/lua/plugins/lualine.lua 1.9 K raw
1
return {
2
  "nvim-lualine/lualine.nvim",
3
  enabled = true,
4
  lazy = true,
5
  event = { "BufReadPost", "BufNewFile", "VeryLazy" },
6
  config = function()
7
    require("lualine").setup({
8
      options = {
9
        theme = "auto",
10
        icons_enabled = true,
11
        section_separators = "",
12
        component_separators = "",
13
        disabled_filetypes = {
14
          statusline = {
15
            "help",
16
            "startify",
17
            "dashboard",
18
            "neo-tree",
19
            "packer",
20
            "neogitstatus",
21
            "NvimTree",
22
            "Trouble",
23
            "alpha",
24
            "lir",
25
            "Outline",
26
            "spectre_panel",
27
            "toggleterm",
28
            "qf",
29
          },
30
          winbar = {},
31
        },
32
      },
33
      sections = {
34
        lualine_a = {},
35
        lualine_b = {},
36
        lualine_c = {
37
          -- "filename",
38
          {
39
            "filetype",
40
            icon_only = true,
41
            separator = "",
42
            padding = {
43
              left = 1,
44
              right = 0,
45
            },
46
          },
47
          {
48
            "filename",
49
            path = 1,
50
            symbols = {
51
              modified = "  ",
52
              readonly = "",
53
              unnamed = "",
54
            },
55
          },
56
          { "diagnostics", sources = { "nvim_lsp" }, symbols = { error = " ", warn = " ", info = " " } },
57
          { "diff" },
58
          { "searchcount" },
59
        },
60
        lualine_x = { { "b:gitsigns_head", icon = "" } },
61
        lualine_y = { "progress" },
62
        lualine_z = {
63
          -- function()
64
          --   return " " .. os.date("%R")
65
          -- end,
66
        },
67
      },
68
      inactive_sections = {
69
        lualine_a = {},
70
        lualine_b = {},
71
        lualine_c = { "filename" },
72
        lualine_x = { "location" },
73
        lualine_y = {},
74
        lualine_z = {},
75
      },
76
      tabline = {},
77
      extensions = { "neo-tree", "lazy" },
78
    })
79
  end,
80
}