summaryrefslogtreecommitdiff
path: root/neovim/.config/nvim/lua/plugins/lualine.lua
blob: fda2e783583bb1159250dac9b8c1dfb210e530a2 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
return {
  {
    'nvim-lualine/lualine.nvim',
    dependencies = {
      {
        'nvim-tree/nvim-web-devicons',
      },
      {
        "catppuccin/nvim",
        name = "catppuccin",
        priority = 1000,
        lazy = false,
        opts = {
          term_colors = true,
        },
      },
      {
        'navarasu/onedark.nvim',
        lazy = false,
        priority = 1000,
        opts = {
          style = 'light',
        },
      },
      {
        'nyoom-engineering/oxocarbon.nvim',
        lazy = false,
        priority = 1000,
      },
      {
        "folke/tokyonight.nvim",
        lazy = false,
        priority = 1000,
        opts = {},
      },
      {
        'lunacookies/vim-colors-xcode',
        lazy = false,
        priority = 1000,
        config = function()
          local colorscheme_rules_augroup = vim.api.nvim_create_augroup('Colors', {})
          vim.api.nvim_create_autocmd({ 'ColorScheme' }, {
            pattern = { '*' },
            group = colorscheme_rules_augroup,
            callback = function()
              vim.api.nvim_set_hl(0, 'WinSeparator', { link = 'VertSplit', force = 1, default = 1 })
            end,
          })
        end,
        dependencies = {
          {
            'f-person/auto-dark-mode.nvim',
            opts = {
              update_interval = 1000,
              set_dark_mode = function()
                vim.api.nvim_set_option('background', 'dark')
              end,
              set_light_mode = function()
                vim.api.nvim_set_option('background', 'light')
              end
            }
          }
        },
      },
    },
    event = { 'BufEnter', 'VimEnter' },
    config = function()
      require('config.lualine')
    end,
  }
}