summaryrefslogtreecommitdiff
path: root/lua/lvim/core/bufferline.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lvim/core/bufferline.lua')
-rw-r--r--lua/lvim/core/bufferline.lua16
1 files changed, 12 insertions, 4 deletions
diff --git a/lua/lvim/core/bufferline.lua b/lua/lvim/core/bufferline.lua
index 7e8f1376..36e5ff54 100644
--- a/lua/lvim/core/bufferline.lua
+++ b/lua/lvim/core/bufferline.lua
@@ -52,15 +52,16 @@ M.config = function()
},
},
options = {
+ mode = "buffers", -- set to "tabs" to only show tabpages instead
numbers = "none", -- can be "none" | "ordinal" | "buffer_id" | "both" | function
close_command = "bdelete! %d", -- can be a string | function, see "Mouse actions"
right_mouse_command = "vert sbuffer %d", -- can be a string | function, see "Mouse actions"
left_mouse_command = "buffer %d", -- can be a string | function, see "Mouse actions"
middle_mouse_command = nil, -- can be a string | function, see "Mouse actions"
- -- NOTE: this plugin is designed with this icon in mind,
- -- and so changing this is NOT recommended, this is intended
- -- as an escape hatch for people who cannot bear it for whatever reason
- indicator_icon = "▎",
+ indicator = {
+ icon = "▎", -- this should be omitted if indicator style is not 'icon'
+ style = "icon", -- can also be 'underline'|'none',
+ },
buffer_close_icon = "",
modified_icon = "●",
close_icon = "",
@@ -78,6 +79,7 @@ M.config = function()
end,
max_name_length = 18,
max_prefix_length = 15, -- prefix used when a buffer is de-duplicated
+ truncate_names = true, -- whether or not tab names should be truncated
tab_size = 18,
diagnostics = "nvim_lsp",
diagnostics_update_in_insert = false,
@@ -115,6 +117,7 @@ M.config = function()
padding = 1,
},
},
+ color_icons = true, -- whether or not to add the filetype icon highlights
show_buffer_icons = lvim.use_icons, -- disable filetype icons for buffers
show_buffer_close_icons = lvim.use_icons,
show_close_icon = false,
@@ -125,6 +128,11 @@ M.config = function()
separator_style = "thin",
enforce_regular_tabs = false,
always_show_bufferline = false,
+ hover = {
+ enabled = false, -- requires nvim 0.8+
+ delay = 200,
+ reveal = { "close" },
+ },
sort_by = "id",
},
}