feat: update bufferline styling

This commit is contained in:
NotAShelf 2023-03-01 12:45:53 +03:00
parent ffd99ccebb
commit 13fbc0530c
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1

View file

@ -47,19 +47,19 @@ in {
vim.luaConfigRC.nvimBufferline = nvim.dag.entryAnywhere '' vim.luaConfigRC.nvimBufferline = nvim.dag.entryAnywhere ''
require("bufferline").setup{ require("bufferline").setup{
options = { options = {
mode = "buffers",
numbers = "both", numbers = "both",
close_command = ${mouse.close}, close_command = ${mouse.close},
right_mouse_command = ${mouse.right}, right_mouse_command = ${mouse.right},
indicator = { indicator = {
indicator_icon = '', style = 'underline',
style = 'icon', -- indicator_icon = '',
}, },
buffer_close_icon = '', buffer_close_icon = '',
modified_icon = '', modified_icon = '',
close_icon = '', close_icon = '',
left_trunc_marker = '', left_trunc_marker = '',
right_trunc_marker = '', right_trunc_marker = '',
separator_style = "thin",
max_name_length = 18, max_name_length = 18,
max_prefix_length = 15, max_prefix_length = 15,
tab_size = 18, tab_size = 18,
@ -68,11 +68,15 @@ in {
show_close_icon = true, show_close_icon = true,
show_tab_indicators = true, show_tab_indicators = true,
persist_buffer_sort = true, persist_buffer_sort = true,
enforce_regular_tabs = false, --separator_style = "thin",
separator_style = { " ", " " },
enforce_regular_tabs = true,
always_show_bufferline = true, always_show_bufferline = true,
offsets = {{filetype = "NvimTree", text = "File Explorer", text_align = "left"}}, offsets = {
{filetype = "NvimTree", text = "File Explorer", text_align = "center"}
},
sort_by = 'extension', sort_by = 'extension',
diagnostics = "nvim_lsp", diagnostics = "nvim_lsp", -- TODO: use coc if it's enabled
diagnostics_update_in_insert = true, diagnostics_update_in_insert = true,
diagnostics_indicator = function(count, level, diagnostics_dict, context) diagnostics_indicator = function(count, level, diagnostics_dict, context)
local s = "" local s = ""