lualine.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 = 0 } },
  56. -- lualine_a = { { "mode", separator = { left = "" }, right_padding = 2 } },
  57. lualine_b = { "filename", "branch" },
  58. lualine_c = {
  59. "%=", --[[ add your center compoentnts here in place of this comment ]]
  60. },
  61. lualine_x = {},
  62. lualine_y = { "filetype", "progress" },
  63. lualine_z = {
  64. { "location", separator = { right = "" }, left_padding = 0 },
  65. -- { "location", separator = { right = "" }, left_padding = 2 },
  66. },
  67. },
  68. inactive_sections = {
  69. lualine_a = { "filename" },
  70. lualine_b = {},
  71. lualine_c = {},
  72. lualine_x = {},
  73. lualine_y = {},
  74. lualine_z = { "location" },
  75. },
  76. tabline = {},
  77. extensions = {},
  78. })
  79. end,
  80. },
  81. }