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.

57 lines
1.7 KiB

  1. return {
  2. "nvim-lualine/lualine.nvim",
  3. dependencies = {
  4. "nvim-tree/nvim-web-devicons",
  5. "letieu/harpoon-lualine",
  6. },
  7. config = function()
  8. local lualine = require("lualine")
  9. local lazy_status = require("lazy.status")
  10. lualine.setup({
  11. options = {
  12. theme = "kanagawa",
  13. component_separators = { left = "", right = "" },
  14. section_separators = { left = "", right = "" },
  15. globalstatus = true,
  16. },
  17. extensions = {
  18. "fugitive",
  19. "oil",
  20. "quickfix",
  21. },
  22. sections = {
  23. lualine_b = {
  24. { "branch" },
  25. { "diff" },
  26. { "diagnostics" },
  27. {
  28. function()
  29. local buffers = vim.fn.getbufinfo({ buflisted = true })
  30. return "Buffers: " .. #buffers
  31. end,
  32. },
  33. },
  34. lualine_c = {
  35. { "filename", file_status = true, path = 1 },
  36. { "harpoon2" },
  37. },
  38. lualine_x = {
  39. {
  40. lazy_status.updates,
  41. cond = lazy_status.has_updates,
  42. color = { fg = "#ff9e64" },
  43. },
  44. { "fileformat" },
  45. { "filetype" },
  46. },
  47. lualine_y = {
  48. { "progress" },
  49. },
  50. lualine_z = {
  51. { "location" }
  52. },
  53. },
  54. })
  55. end,
  56. }