init.lua 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. local M = {}
  2. M.config = function()
  3. -- Buffer line setup
  4. require("bufferline").setup {
  5. options = {
  6. indicator_icon = "▎",
  7. buffer_close_icon = "",
  8. modified_icon = "●",
  9. close_icon = "",
  10. close_command = "bdelete %d",
  11. right_mouse_command = "bdelete! %d",
  12. left_trunc_marker = "",
  13. right_trunc_marker = "",
  14. offsets = {
  15. {
  16. filetype = "NvimTree",
  17. text = "",
  18. text_align = "center",
  19. padding = 1,
  20. },
  21. },
  22. show_tab_indicators = true,
  23. show_close_icon = false,
  24. },
  25. highlights = {
  26. fill = {
  27. guifg = { attribute = "fg", highlight = "Normal" },
  28. guibg = { attribute = "bg", highlight = "StatusLineNC" },
  29. },
  30. -- background = {
  31. -- guifg = {attribute = "fg", highlight = "Normal"},
  32. -- guibg = {attribute = "bg", highlight = "StatusLine"}
  33. -- },
  34. -- buffer_visible = {
  35. -- gui = "",
  36. -- guifg = {attribute = "fg", highlight = "Normal"},
  37. -- guibg = {attribute = "bg", highlight = "Normal"}
  38. -- },
  39. -- buffer_selected = {
  40. -- gui = "",
  41. -- guifg = {attribute = "fg", highlight = "Normal"},
  42. -- guibg = {attribute = "bg", highlight = "Normal"}
  43. -- },
  44. -- separator = {
  45. -- guifg = {attribute = "bg", highlight = "Normal"},
  46. -- guibg = {attribute = "bg", highlight = "StatusLine"}
  47. -- },
  48. -- separator_selected = {
  49. -- guifg = {attribute = "fg", highlight = "Special"},
  50. -- guibg = {attribute = "bg", highlight = "Normal"}
  51. -- },
  52. -- separator_visible = {
  53. -- guifg = {attribute = "fg", highlight = "Normal"},
  54. -- guibg = {attribute = "bg", highlight = "StatusLineNC"}
  55. -- },
  56. -- close_button = {
  57. -- guifg = {attribute = "fg", highlight = "Normal"},
  58. -- guibg = {attribute = "bg", highlight = "StatusLine"}
  59. -- },
  60. -- close_button_selected = {
  61. -- guifg = {attribute = "fg", highlight = "normal"},
  62. -- guibg = {attribute = "bg", highlight = "normal"}
  63. -- },
  64. -- close_button_visible = {
  65. -- guifg = {attribute = "fg", highlight = "normal"},
  66. -- guibg = {attribute = "bg", highlight = "normal"}
  67. -- }
  68. },
  69. }
  70. end
  71. return M