|
@@ -52,15 +52,16 @@ M.config = function()
|
|
},
|
|
},
|
|
},
|
|
},
|
|
options = {
|
|
options = {
|
|
|
|
+ mode = "buffers", -- set to "tabs" to only show tabpages instead
|
|
numbers = "none", -- can be "none" | "ordinal" | "buffer_id" | "both" | function
|
|
numbers = "none", -- can be "none" | "ordinal" | "buffer_id" | "both" | function
|
|
close_command = "bdelete! %d", -- can be a string | function, see "Mouse actions"
|
|
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"
|
|
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"
|
|
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"
|
|
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 = "",
|
|
buffer_close_icon = "",
|
|
modified_icon = "●",
|
|
modified_icon = "●",
|
|
close_icon = "",
|
|
close_icon = "",
|
|
@@ -78,6 +79,7 @@ M.config = function()
|
|
end,
|
|
end,
|
|
max_name_length = 18,
|
|
max_name_length = 18,
|
|
max_prefix_length = 15, -- prefix used when a buffer is de-duplicated
|
|
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,
|
|
tab_size = 18,
|
|
diagnostics = "nvim_lsp",
|
|
diagnostics = "nvim_lsp",
|
|
diagnostics_update_in_insert = false,
|
|
diagnostics_update_in_insert = false,
|
|
@@ -115,6 +117,7 @@ M.config = function()
|
|
padding = 1,
|
|
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_icons = lvim.use_icons, -- disable filetype icons for buffers
|
|
show_buffer_close_icons = lvim.use_icons,
|
|
show_buffer_close_icons = lvim.use_icons,
|
|
show_close_icon = false,
|
|
show_close_icon = false,
|
|
@@ -125,6 +128,11 @@ M.config = function()
|
|
separator_style = "thin",
|
|
separator_style = "thin",
|
|
enforce_regular_tabs = false,
|
|
enforce_regular_tabs = false,
|
|
always_show_bufferline = false,
|
|
always_show_bufferline = false,
|
|
|
|
+ hover = {
|
|
|
|
+ enabled = false, -- requires nvim 0.8+
|
|
|
|
+ delay = 200,
|
|
|
|
+ reveal = { "close" },
|
|
|
|
+ },
|
|
sort_by = "id",
|
|
sort_by = "id",
|
|
},
|
|
},
|
|
}
|
|
}
|