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.

51 lines
1.5 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. lualine_c = {
  29. { "filename", file_status = true, path = 1 },
  30. { "harpoon2" },
  31. },
  32. lualine_x = {
  33. {
  34. lazy_status.updates,
  35. cond = lazy_status.has_updates,
  36. color = { fg = "#ff9e64" },
  37. },
  38. { "fileformat" },
  39. { "filetype" },
  40. },
  41. lualine_y = {
  42. { "progress" },
  43. },
  44. lualine_z = {
  45. { "location" }
  46. },
  47. },
  48. })
  49. end,
  50. }