init.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. vim.api.nvim_set_keymap('n', '<TAB>', ':BufferNext<CR>', { noremap = true, silent = true })
  2. vim.api.nvim_set_keymap('n', '<S-TAB>', ':BufferPrevious<CR>', { noremap = true, silent = true })
  3. --[[ nnoremap <silent> <A-,> :BufferPrevious<CR>
  4. nnoremap <silent> <A-.> :BufferNext<CR> ]]
  5. --" These commands will sort buffers by directory, language, or a custom criteria
  6. --nnoremap <silent>be :BufferLineSortByExtension<CR>
  7. --nnoremap <silent>bd :BufferLineSortByDirectory<CR>
  8. --nnoremap <silent><mymap> :lua require'bufferline'.sort_buffers_by(function (buf_a, buf_b) return buf_a.id < buf_b.id end)<CR>
  9. -- colors for active , inactive buffer tabs
  10. --[[ require "bufferline".setup {
  11. options = {
  12. -- buffer_close_icon = "",
  13. -- modified_icon = "●",
  14. -- close_icon = "",
  15. -- left_trunc_marker = "",
  16. -- right_trunc_marker = "",
  17. -- max_name_length = 14,
  18. -- max_prefix_length = 13,
  19. -- tab_size = 18,
  20. -- enforce_regular_tabs = true,
  21. -- view = "multiwindow",
  22. -- show_buffer_close_icons = true,
  23. -- separator_style = 'slant'
  24. separator_style = "thin"
  25. },
  26. highlights = {
  27. background = {
  28. guifg = "#abb2bf",
  29. guibg = "#282c34"
  30. },
  31. fill = {
  32. guifg = "#282c34",
  33. guibg = "#1e1e1e"
  34. },
  35. buffer_selected = {
  36. guifg = "#abb2bf",
  37. guibg = "#3A3E44",
  38. gui = "bold"
  39. },
  40. buffer_selected = {
  41. guifg = "#abb2bf",
  42. guibg = "#3A3E44",
  43. gui = "bold"
  44. },
  45. separator_visible = {
  46. guifg = "#1e1e1e",
  47. guibg = "#1e1e1e"
  48. },
  49. separator_selected = {
  50. guifg = "#1e1e1e",
  51. guibg = "#1e1e1e"
  52. },
  53. separator = {
  54. guifg = "#1e1e1e",
  55. guibg = "#1e1e1e"
  56. },
  57. indicator_selected = {
  58. guifg = "#abb2bf",
  59. guibg = "#3a3e44"
  60. },
  61. modified_selected = {
  62. guifg = "#abb2bf",
  63. guibg = "#3a3e44"
  64. },
  65. modified = {
  66. guifg = "#abb2bf",
  67. guibg = "#282c34"
  68. },
  69. modified_visible = {
  70. guifg = "#abb2bf",
  71. guibg = "#282c34"
  72. },
  73. duplicate_selected = {
  74. guifg = "#abb3bf",
  75. guibg = "#3a3e44",
  76. -- gui = "italic"
  77. },
  78. duplicate_visible = {
  79. guifg = "#abb3bf",
  80. guibg = "#282c34",
  81. -- gui = "italic"
  82. },
  83. duplicate = {
  84. guifg = "#abb3bf",
  85. guibg = "#282c34",
  86. -- gui = "italic"
  87. },
  88. tab = {
  89. guifg = "#abb3bf",
  90. guibg = "#282c34",
  91. },
  92. tab_selected = {
  93. guifg = "#abb3bf",
  94. guibg = "#282c34",
  95. },
  96. tab_close = {
  97. guifg = "#abb3bf",
  98. guibg = "#282c34",
  99. },
  100. pick_selected = {
  101. guifg = "#abb3bf",
  102. guibg = "#282c34",
  103. gui = "bold,italic"
  104. },
  105. pick_visible = {
  106. guifg = "#abb3bf",
  107. guibg = "#282c34",
  108. gui = "bold,italic"
  109. },
  110. pick = {
  111. guifg = "#abb3bf",
  112. guibg = "#282c34",
  113. gui = "bold,italic"
  114. }
  115. }
  116. } ]]