lualine.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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",
  42. "trouble",
  43. statusline = {},
  44. winbar = {},
  45. },
  46. ignore_focus = {},
  47. always_divide_middle = true,
  48. globalstatus = false,
  49. refresh = {
  50. statusline = 1000,
  51. tabline = 1000,
  52. winbar = 1000,
  53. },
  54. },
  55. sections = {
  56. lualine_a = { { "mode", separator = { left = "" }, right_padding = 0 } },
  57. -- lualine_a = { { "mode", separator = { left = "" }, right_padding = 2 } },
  58. lualine_b = { "filename", "branch" },
  59. lualine_c = {
  60. "%=", --[[ add your center compoentnts here in place of this comment ]]
  61. {
  62. function()
  63. local stl = require("edgy-group.stl")
  64. local bottom_line = stl.get_statusline("bottom")
  65. return table.concat(bottom_line)
  66. end,
  67. },
  68. },
  69. lualine_x = {},
  70. lualine_y = { "filetype", "progress" },
  71. lualine_z = {
  72. { "location", separator = { right = "" }, left_padding = 0 },
  73. -- { "location", separator = { right = "" }, left_padding = 2 },
  74. },
  75. },
  76. inactive_sections = {
  77. lualine_a = { "filename" },
  78. lualine_b = {},
  79. lualine_c = {},
  80. lualine_x = {},
  81. lualine_y = {},
  82. lualine_z = { "location" },
  83. },
  84. tabline = {},
  85. extensions = {},
  86. })
  87. end,
  88. },
  89. }