theme.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. local M = {}
  2. M.config = function()
  3. lvim.builtin.theme = {
  4. name = "tokyonight",
  5. options = {
  6. on_highlights = function(hl, c)
  7. hl.IndentBlanklineContextChar = {
  8. fg = c.dark5,
  9. }
  10. end,
  11. style = "night", -- The theme comes in three styles, `storm`, a darker variant `night` and `day`
  12. transparent = lvim.transparent_window, -- Enable this to disable setting the background color
  13. terminal_colors = true, -- Configure the colors used when opening a `:terminal` in Neovim
  14. styles = {
  15. -- Style to be applied to different syntax groups
  16. -- Value is any valid attr-list value for `:help nvim_set_hl`
  17. comments = { italic = true },
  18. keywords = { italic = true },
  19. functions = {},
  20. variables = {},
  21. -- Background styles. Can be "dark", "transparent" or "normal"
  22. sidebars = "dark", -- style for sidebars, see below
  23. floats = "dark", -- style for floating windows
  24. },
  25. -- Set a darker background on sidebar-like windows. For example: `["qf", "vista_kind", "terminal", "packer"]`
  26. sidebars = {
  27. "qf",
  28. "vista_kind",
  29. "terminal",
  30. "packer",
  31. "spectre_panel",
  32. "NeogitStatus",
  33. "help",
  34. },
  35. day_brightness = 0.3, -- Adjusts the brightness of the colors of the **Day** style. Number between 0 and 1, from dull to vibrant colors
  36. hide_inactive_statusline = false, -- Enabling this option, will hide inactive statuslines and replace them with a thin border instead. Should work with the standard **StatusLine** and **LuaLine**.
  37. dim_inactive = false, -- dims inactive windows
  38. lualine_bold = false, -- When `true`, section headers in the lualine theme will be bold
  39. use_background = true, -- can be light/dark/auto. When auto, background will be set to vim.o.background
  40. },
  41. }
  42. end
  43. M.setup = function()
  44. local status_ok, theme = pcall(require, "tokyonight")
  45. if not status_ok then
  46. return
  47. end
  48. theme.setup(lvim.builtin.theme.options)
  49. lvim.builtin.lualine.options.theme = "tokyonight"
  50. end
  51. return M