theme.lua 1.9 KB

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