diff options
author | Yigit Sever | 2023-04-06 16:35:14 +0300 |
---|---|---|
committer | Yigit Sever | 2023-04-06 16:35:14 +0300 |
commit | 30c7e970cd6a36d9154bfc9cd976449fea16a999 (patch) | |
tree | 780c7b8c75b5a37679c3fa39ee6874ca3771e9e1 /.config/nvim/lua/plugin_settings.lua | |
parent | 9d71574f0cd3d7ba7b37b12b143fce81eeccd463 (diff) | |
download | dotfiles-30c7e970cd6a36d9154bfc9cd976449fea16a999.tar.gz dotfiles-30c7e970cd6a36d9154bfc9cd976449fea16a999.tar.bz2 dotfiles-30c7e970cd6a36d9154bfc9cd976449fea16a999.zip |
nvim: update barbar config
Diffstat (limited to '.config/nvim/lua/plugin_settings.lua')
-rw-r--r-- | .config/nvim/lua/plugin_settings.lua | 109 |
1 files changed, 32 insertions, 77 deletions
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({ | |||
672 | 672 | ||
673 | -- barbar.nvim {{{ -- | 673 | -- barbar.nvim {{{ -- |
674 | 674 | ||
675 | require'bufferline'.setup { | 675 | vim.g.barbar_auto_setup = false -- disable auto-setup |
676 | -- disable animations | 676 | |
677 | animation = false, | 677 | require'barbar'.setup { |
678 | 678 | animation = false, | |
679 | -- auto-hide the tab bar when there is a single buffer | 679 | auto_hide = true, |
680 | auto_hide = true, | 680 | tabpages = true, |
681 | 681 | closable = true, | |
682 | -- enable current/total tabpages indicator (top right corner) | 682 | clickable = false, |
683 | tabpages = true, | 683 | icons = { |
684 | 684 | diagnostics = { | |
685 | -- enable close button | 685 | -- `vim.diagnostic.severity` |
686 | closable = true, | 686 | [vim.diagnostic.severity.ERROR] = {enabled = true, icon = '❌'}, |
687 | 687 | [vim.diagnostic.severity.WARN] = {enabled = false}, | |
688 | -- disable clickable tabs | 688 | [vim.diagnostic.severity.INFO] = {enabled = false}, |
689 | clickable = false, | 689 | [vim.diagnostic.severity.HINT] = {enabled = true}, |
690 | }, | ||
691 | filetype = { | ||
692 | custom_colors = false, | ||
693 | enabled = true, | ||
694 | }, | ||
695 | separator = { left = '▎', right = ''}, | ||
696 | modified = { button = '•'}, | ||
697 | pinned = { button = '車', filename = true, separator = { right = ''}}, | ||
698 | }, | ||
690 | 699 | ||
691 | -- Enables / disables diagnostic symbols | 700 | insert_at_end = false, |
692 | diagnostics = { | 701 | insert_at_start = false, |
693 | -- `vim.diagnostic.severity` | ||
694 | [vim.diagnostic.severity.ERROR] = {enabled = true, icon = '❌'}, | ||
695 | [vim.diagnostic.severity.WARN] = {enabled = false}, | ||
696 | [vim.diagnostic.severity.INFO] = {enabled = false}, | ||
697 | [vim.diagnostic.severity.HINT] = {enabled = true}, | ||
698 | }, | ||
699 | 702 | ||
700 | -- -- Excludes buffers from the tabline | 703 | maximum_padding = 1, |
701 | -- exclude_ft = {'javascript'}, | 704 | minimum_padding = 1, |
702 | -- exclude_name = {'package.json'}, | 705 | maximum_length = 30, |
703 | 706 | semantic_letters = true, | |
704 | -- Hide inactive buffers and file extensions. Other options are `current` and `visible` | 707 | letters = 'arstneoidhqwfpluy;zxcvkmARSTNEOIDHQWFPLUYZXCVKM', |
705 | -- hide = {extensions = true, inactive = true}, | 708 | no_name_title = nil, |
706 | |||
707 | -- Enable/disable icons | ||
708 | -- if set to 'numbers', will show buffer index in the tabline | ||
709 | -- if set to 'both', will show buffer index and icons in the tabline | ||
710 | icons = true, | ||
711 | |||
712 | -- If set, the icon color will follow its corresponding buffer | ||
713 | -- highlight group. By default, the Buffer*Icon group is linked to the | ||
714 | -- Buffer* group (see Highlighting below). Otherwise, it will take its | ||
715 | -- default value as defined by devicons. | ||
716 | icon_custom_colors = false, | ||
717 | |||
718 | -- Configure icons on the bufferline. | ||
719 | icon_separator_active = '▎', | ||
720 | icon_separator_inactive = '▎', | ||
721 | icon_close_tab = '', | ||
722 | icon_close_tab_modified = '•', | ||
723 | icon_pinned = '車', | ||
724 | |||
725 | -- If true, new buffers will be inserted at the start/end of the list. | ||
726 | -- Default is to insert after current buffer. | ||
727 | insert_at_end = false, | ||
728 | insert_at_start = false, | ||
729 | |||
730 | -- Sets the maximum padding width with which to surround each tab | ||
731 | maximum_padding = 1, | ||
732 | |||
733 | -- Sets the minimum padding width with which to surround each tab | ||
734 | minimum_padding = 1, | ||
735 | |||
736 | -- Sets the maximum buffer name length. | ||
737 | maximum_length = 30, | ||
738 | |||
739 | -- If set, the letters for each buffer in buffer-pick mode will be | ||
740 | -- assigned based on their name. Otherwise or in case all letters are | ||
741 | -- already assigned, the behavior is to assign letters in order of | ||
742 | -- usability (see order below) | ||
743 | semantic_letters = true, | ||
744 | |||
745 | -- New buffer letters are assigned in this order. This order is | ||
746 | -- optimal for the qwerty keyboard layout but might need adjustement | ||
747 | -- for other layouts. | ||
748 | -- letters = 'asdfjkl;ghnmxcvbziowerutyqpASDFJKLGHNMXCVBZIOWERUTYQP', | ||
749 | letters = 'arstneoidhqwfpluy;zxcvkmARSTNEOIDHQWFPLUYZXCVKM', | ||
750 | |||
751 | -- Sets the name of unnamed buffers. By default format is "[Buffer X]" | ||
752 | -- where X is the buffer number. But only a static string is accepted here. | ||
753 | no_name_title = nil, | ||
754 | } | 709 | } |
755 | 710 | ||
756 | local nvim_tree_events = require('nvim-tree.events') | 711 | local nvim_tree_events = require('nvim-tree.events') |