diff options
Diffstat (limited to 'neovim/.config/nvim/confs/bufferline.vim')
-rw-r--r-- | neovim/.config/nvim/confs/bufferline.vim | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/neovim/.config/nvim/confs/bufferline.vim b/neovim/.config/nvim/confs/bufferline.vim index e0313fe..c8f243f 100644 --- a/neovim/.config/nvim/confs/bufferline.vim +++ b/neovim/.config/nvim/confs/bufferline.vim @@ -1,5 +1,30 @@ lua << EOF - require("bufferline").setup{} + require("bufferline").setup + { + options = + { + separator_style = "thick", + always_show_bufferline = false, + show_close_icon = false, + diagnostics = "nvim_lsp", + indicator_icon = "", + + offsets = + { + { + filetype = "NvimTree", + text = "File Explorer", + highlight = "Directory", + text_align = "center" + } + }, + + diagnostics_indicator = function(count, level, diagnostics_dict, context) + local icon = level:match("error") and " " or " " + return " " .. icon .. count + end + }, + } EOF nnoremap <silent>[b :BufferLineCycleNext<CR> |