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. "catppuccin/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('catppuccin').setup {
  10. transparent_background = true,
  11. }
  12. local day = 9
  13. local night = 18
  14. local hour = os.date("*t").hour
  15. local themes = { "catppuccin-macchiato", "catppuccin-mocha" }
  16. local theme = 1
  17. if day <= hour and hour < night then
  18. theme = 1
  19. else
  20. theme = 2
  21. end
  22. vim.cmd.colorscheme(themes[theme])
  23. local function toggletheme()
  24. if theme == 1 then
  25. theme = 2
  26. else
  27. theme = 1
  28. end
  29. vim.cmd.colorscheme(themes[theme])
  30. end
  31. vim.api.nvim_create_user_command("ToggleTheme", toggletheme, {})
  32. end,
  33. },
  34. {
  35. 'nvim-lualine/lualine.nvim',
  36. dependencies = { 'nvim-tree/nvim-web-devicons' },
  37. init = function()
  38. vim.opt.laststatus = 3
  39. end,
  40. opts = {
  41. options = {
  42. icons_enabled = true,
  43. theme = 'auto',
  44. section_separators = { left = '', right = '' },
  45. component_separators = { left = '', right = '' },
  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. }