lualine.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. return {
  2. "nvim-lualine/lualine.nvim",
  3. dependencies = { "nvim-tree/nvim-web-devicons" },
  4. config = function()
  5. require("lualine").setup({
  6. options = {
  7. icons_enabled = true,
  8. theme = "gruvbox-material",
  9. component_separators = { left = "", right = "" },
  10. section_separators = { left = "", right = "" },
  11. disabled_filetypes = {
  12. statusline = {},
  13. winbar = {},
  14. },
  15. ignore_focus = {},
  16. always_divide_middle = true,
  17. globalstatus = false,
  18. refresh = {
  19. statusline = 1000,
  20. tabline = 1000,
  21. winbar = 1000,
  22. },
  23. },
  24. sections = {
  25. lualine_a = { "mode" },
  26. lualine_b = { "branch", "diff", "diagnostics" },
  27. lualine_c = { "filename" },
  28. lualine_x = { "encoding", "fileformat", "filetype" },
  29. lualine_y = { "progress" },
  30. lualine_z = { "location" },
  31. },
  32. inactive_sections = {
  33. lualine_a = { "filename" },
  34. lualine_b = {},
  35. lualine_c = {},
  36. lualine_x = {},
  37. lualine_y = {},
  38. lualine_z = { "location" },
  39. },
  40. tabline = {},
  41. winbar = {},
  42. inactive_winbar = {},
  43. extensions = {},
  44. })
  45. end,
  46. }