summaryrefslogtreecommitdiffstats
path: root/lua/conf/plugins/mellow.lua
blob: f0ebf82bfbfb9eedfd9435dddf87aa81b1118d36 (plain) (blame)
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
return { "mellow-theme/mellow.nvim",
  disable = not vim.fn.has("nvim-0.8.0"),
  requires = "nvim-treesitter/nvim-treesitter",
  function()
    vim.g.mellow_variant = "dark"
    local c = require("mellow.colors")[vim.g.mellow_variant]

    vim.g.mellow_highlight_overrides = {
      -- stop inactive windows from having a darker bg
      ["NormalNC"] = { link = "Normal" },

      -- make floats darker
      ["NormalFloat"] = { fg = c.fg, bg = "#111111" },
      ["FloatBorder"] = { link = "NormalFloat" },

      -- neorg headings, looks extra good with lukas-reineke/headlines.nvim
      ["@neorg.headings.1.title"] = { fg = c.yellow, bg = "#2a211c" },
      ["@neorg.headings.1.icon"] = { link = "@neorg.headings.1.title" },

      ["@neorg.headings.2.title"] = { fg = c.blue, bg = "#201e25" },
      ["@neorg.headings.2.icon"] = { link = "@neorg.headings.2.title" },

      ["@neorg.headings.3.title"] = { fg = c.cyan, bg = "#2b1b20" },
      ["@neorg.headings.3.icon"] = { link = "@neorg.headings.3.title" },

      ["@neorg.headings.4.title"] = { fg = c.green, bg = "#1d201e" },
      ["@neorg.headings.4.icon"] = { link = "@neorg.headings.4.title" },

      ["@neorg.headings.5.title"] = { fg = c.magenta, bg = "#251a21" },
      ["@neorg.headings.5.icon"] = { link = "@neorg.headings.5.title" },

      ["@neorg.headings.6.title"] = { fg = c.white, bg = "#212126" },
      ["@neorg.headings.6.icon"] = { link = "@neorg.headings.6.title" },

      -- make blink actually look nice
      ["BlinkCmpMenu"] = { bg = c.bg_dark },
      ["BlinkCmpMenuBorder"] = { link = "BlinkCmpMenu" },
      ["BlinkCmpMenuSelection"] = { bg = c.gray02 }
    }
  end
}