lualine.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. -- stylua: ignore
  2. local colors = {
  3. blue = '#80a0ff',
  4. cyan = '#79dac8',
  5. black = '#080808',
  6. white = '#c6c6c6',
  7. red = '#ff5189',
  8. violet = '#d183e8',
  9. grey = '#303030',
  10. }
  11. local bubbles_theme = {
  12. normal = {
  13. a = { fg = colors.black, bg = colors.violet },
  14. b = { fg = colors.white, bg = colors.grey },
  15. c = { fg = colors.white },
  16. },
  17. insert = { a = { fg = colors.black, bg = colors.blue } },
  18. visual = { a = { fg = colors.black, bg = colors.cyan } },
  19. replace = { a = { fg = colors.black, bg = colors.red } },
  20. inactive = {
  21. a = { fg = colors.white, bg = colors.black },
  22. b = { fg = colors.white, bg = colors.black },
  23. c = { fg = colors.white },
  24. },
  25. }
  26. return {
  27. {
  28. "nvim-lualine/lualine.nvim",
  29. dependencies = { "nvim-tree/nvim-web-devicons" },
  30. config = function()
  31. require("lualine").setup({
  32. options = {
  33. icons_enabled = true,
  34. theme = bubbles_theme,
  35. -- theme = 'onedark',
  36. component_separators = "",
  37. section_separators = { left = "", right = "" },
  38. -- component_separators = { left = '', right = ''},
  39. -- section_separators = { left = '', right = ''},
  40. disabled_filetypes = {
  41. "neo-tree", "trouble",
  42. statusline = {},
  43. winbar = {},
  44. },
  45. ignore_focus = {},
  46. always_divide_middle = true,
  47. globalstatus = false,
  48. refresh = {
  49. statusline = 1000,
  50. tabline = 1000,
  51. winbar = 1000,
  52. },
  53. },
  54. sections = {
  55. lualine_a = { { "mode", separator = { left = "" }, right_padding = 2 } },
  56. lualine_b = { "filename", "branch" },
  57. lualine_c = {
  58. "%=", --[[ add your center compoentnts here in place of this comment ]]
  59. },
  60. lualine_x = {},
  61. lualine_y = { "filetype", "progress" },
  62. lualine_z = {
  63. { "location", separator = { right = "" }, left_padding = 2 },
  64. },
  65. },
  66. inactive_sections = {
  67. lualine_a = { "filename" },
  68. lualine_b = {},
  69. lualine_c = {},
  70. lualine_x = {},
  71. lualine_y = {},
  72. lualine_z = { "location" },
  73. },
  74. tabline = {},
  75. extensions = {},
  76. })
  77. end,
  78. },
  79. }