From 30c7e970cd6a36d9154bfc9cd976449fea16a999 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 6 Apr 2023 16:35:14 +0300 Subject: nvim: update barbar config --- .config/nvim/lua/plugin_settings.lua | 109 ++++++++++------------------------- 1 file changed, 32 insertions(+), 77 deletions(-) (limited to '.config') diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua index 55b3cae..b13c704 100644 --- a/.config/nvim/lua/plugin_settings.lua +++ b/.config/nvim/lua/plugin_settings.lua @@ -672,85 +672,40 @@ require("nvim-tree").setup({ -- barbar.nvim {{{ -- -require'bufferline'.setup { - -- disable animations - animation = false, - - -- auto-hide the tab bar when there is a single buffer - auto_hide = true, - - -- enable current/total tabpages indicator (top right corner) - tabpages = true, - - -- enable close button - closable = true, - - -- disable clickable tabs - clickable = false, +vim.g.barbar_auto_setup = false -- disable auto-setup + +require'barbar'.setup { + animation = false, + auto_hide = true, + tabpages = true, + closable = true, + clickable = false, + icons = { + diagnostics = { + -- `vim.diagnostic.severity` + [vim.diagnostic.severity.ERROR] = {enabled = true, icon = '❌'}, + [vim.diagnostic.severity.WARN] = {enabled = false}, + [vim.diagnostic.severity.INFO] = {enabled = false}, + [vim.diagnostic.severity.HINT] = {enabled = true}, + }, + filetype = { + custom_colors = false, + enabled = true, + }, + separator = { left = '▎', right = ''}, + modified = { button = '•'}, + pinned = { button = '車', filename = true, separator = { right = ''}}, + }, - -- Enables / disables diagnostic symbols - diagnostics = { - -- `vim.diagnostic.severity` - [vim.diagnostic.severity.ERROR] = {enabled = true, icon = '❌'}, - [vim.diagnostic.severity.WARN] = {enabled = false}, - [vim.diagnostic.severity.INFO] = {enabled = false}, - [vim.diagnostic.severity.HINT] = {enabled = true}, - }, + insert_at_end = false, + insert_at_start = false, - -- -- Excludes buffers from the tabline - -- exclude_ft = {'javascript'}, - -- exclude_name = {'package.json'}, - - -- Hide inactive buffers and file extensions. Other options are `current` and `visible` - -- hide = {extensions = true, inactive = true}, - - -- Enable/disable icons - -- if set to 'numbers', will show buffer index in the tabline - -- if set to 'both', will show buffer index and icons in the tabline - icons = true, - - -- If set, the icon color will follow its corresponding buffer - -- highlight group. By default, the Buffer*Icon group is linked to the - -- Buffer* group (see Highlighting below). Otherwise, it will take its - -- default value as defined by devicons. - icon_custom_colors = false, - - -- Configure icons on the bufferline. - icon_separator_active = '▎', - icon_separator_inactive = '▎', - icon_close_tab = '', - icon_close_tab_modified = '•', - icon_pinned = '車', - - -- If true, new buffers will be inserted at the start/end of the list. - -- Default is to insert after current buffer. - insert_at_end = false, - insert_at_start = false, - - -- Sets the maximum padding width with which to surround each tab - maximum_padding = 1, - - -- Sets the minimum padding width with which to surround each tab - minimum_padding = 1, - - -- Sets the maximum buffer name length. - maximum_length = 30, - - -- If set, the letters for each buffer in buffer-pick mode will be - -- assigned based on their name. Otherwise or in case all letters are - -- already assigned, the behavior is to assign letters in order of - -- usability (see order below) - semantic_letters = true, - - -- New buffer letters are assigned in this order. This order is - -- optimal for the qwerty keyboard layout but might need adjustement - -- for other layouts. - -- letters = 'asdfjkl;ghnmxcvbziowerutyqpASDFJKLGHNMXCVBZIOWERUTYQP', - letters = 'arstneoidhqwfpluy;zxcvkmARSTNEOIDHQWFPLUYZXCVKM', - - -- Sets the name of unnamed buffers. By default format is "[Buffer X]" - -- where X is the buffer number. But only a static string is accepted here. - no_name_title = nil, + maximum_padding = 1, + minimum_padding = 1, + maximum_length = 30, + semantic_letters = true, + letters = 'arstneoidhqwfpluy;zxcvkmARSTNEOIDHQWFPLUYZXCVKM', + no_name_title = nil, } local nvim_tree_events = require('nvim-tree.events') -- cgit v1.2.3-70-g09d2