Arch 2025 rice. Also contains a newly inspired neovim config.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.5 KiB

  1. return {
  2. {
  3. "ellisonleao/gruvbox.nvim",
  4. version = false,
  5. lazy = false,
  6. priority = 1000, -- make sure to load this before all the other start plugins
  7. -- Optional; default configuration will be used if setup isn't called.
  8. config = function()
  9. require('gruvbox').setup {
  10. }
  11. local day = 9
  12. local night = 18
  13. local hour = os.date("*t").hour
  14. local themes = { "gruvbox", "gruvbox" }
  15. local theme = 1
  16. if day <= hour and hour < night then
  17. theme = 1
  18. else
  19. theme = 2
  20. end
  21. vim.cmd.colorscheme(themes[theme])
  22. vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
  23. vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
  24. local function toggletheme()
  25. if theme == 1 then
  26. theme = 2
  27. vim.cmd('set background=dark')
  28. else
  29. theme = 1
  30. vim.cmd('set background=light')
  31. end
  32. end
  33. vim.api.nvim_create_user_command("ToggleTheme", toggletheme, {})
  34. end,
  35. },
  36. {
  37. 'nvim-lualine/lualine.nvim',
  38. dependencies = { 'nvim-tree/nvim-web-devicons' },
  39. init = function()
  40. vim.opt.laststatus = 3
  41. end,
  42. opts = {
  43. options = {
  44. icons_enabled = true,
  45. theme = 'auto',
  46. },
  47. sections = {
  48. lualine_a = { 'mode' },
  49. lualine_b = { 'branch', 'diff', 'diagnostics' },
  50. lualine_c = { 'filename' },
  51. lualine_x = { 'encoding', 'fileformat', 'filetype' },
  52. lualine_y = { require('themes.utils').getWords },
  53. },
  54. }
  55. },
  56. }