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.

50 lines
1.1 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. local function macro_recording()
  11. local recording_register = vim.fn.reg_recording()
  12. if recording_register == "" then
  13. return ""
  14. else
  15. return "Recording @" .. recording_register
  16. end
  17. end
  18. lualine.setup({
  19. options = {
  20. theme = "kanagawa",
  21. component_separators = { left = "", right = "" },
  22. section_separators = { left = "", right = "" },
  23. globalstatus = true,
  24. },
  25. sections = {
  26. lualine_b = {
  27. { "branch" },
  28. { "diff" },
  29. { "diagnostics" },
  30. },
  31. lualine_c = {
  32. { "filename", file_status = true, path = 1 },
  33. { "harpoon2" },
  34. { macro_recording, color = { fg = "#ff9e64", gui = "bold" } },
  35. },
  36. lualine_x = {
  37. {
  38. lazy_status.updates,
  39. cond = lazy_status.has_updates,
  40. color = { fg = "#ff9e64" },
  41. },
  42. { "fileformat" },
  43. { "filetype" },
  44. },
  45. },
  46. })
  47. end,
  48. }