summaryrefslogtreecommitdiff
path: root/lua/plugins/theme.lua
blob: 10850348777bbad80e894ed276d2619785414559 (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
return {
  {
    'gbprod/nord.nvim',
    lazy = false,
    priority = 1000,
    config = function()
      require('nord').setup({
        transparent = false, -- controled with below plugin 'xiyaowong/transparent.nvim'
        terminal_colors = true,
        diff = { mode = 'bg' },
        borders = true,
        errors = { mode = 'bg' },
        search = { theme = 'vim' },
        styles = {
          -- Style to be applied to different syntax groups
          -- Value is any valid attr-list value for `:help nvim_set_hl`
          comments = { italic = true },
          keywords = {},
          functions = {},
          variables = {},
          -- To customize lualine/bufferline
          bufferline = {
            current = {},
            modified = { italic = true },
          },
        },
      })

      vim.cmd.colorscheme('nord')
    end,
  },
  {
    'xiyaowong/transparent.nvim',
    config = function()
      require('transparent').setup({
        extra_groups = {
          -- 'NormalFloat', -- plugins which have float panel such as Lazy, Mason, LspInfo
        },
        exclude_groups = { 'CursorLine' },
      })
      vim.keymap.set('n', '<leader>tT', '<CMD>TransparentToggle<CR>', { desc = '[t]oggle [T]ransparency' })
    end,
  },
}