From 0e6d6cb1b5c4c9fc0d7b9334eee56761e23e43f8 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 9 Jun 2024 23:55:42 +0200 Subject: use bufferline.nvim --- lua/style.lua | 41 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) (limited to 'lua/style.lua') diff --git a/lua/style.lua b/lua/style.lua index 307c89f..31fced5 100644 --- a/lua/style.lua +++ b/lua/style.lua @@ -22,8 +22,43 @@ require('lualine').setup({ theme = ayu_dark_lualine_theme, globalstatus = true, }, - tabline = { - lualine_a = { "buffers" } - } }) +local bufferline = require("bufferline") + +local selected_buffer_bg = "#1E2126" + +bufferline.setup { + options = { + style_preset = bufferline.style_preset.no_italic, + show_buffer_close_icons = false, + show_close_icon = false, + indicator = { + style = "none" + }, + diagnostics = "coc", + }, + highlights = { + buffer_selected = { + bg = selected_buffer_bg + }, + diagnostic_selected = { + bg = selected_buffer_bg + }, + hint_selected = { + bg = selected_buffer_bg + }, + info_selected = { + bg = selected_buffer_bg + }, + warning_selected = { + bg = selected_buffer_bg + }, + error_selected = { + bg = selected_buffer_bg + }, + indicator_selected = { + fg = ayu_colors.accent + } + } +} -- cgit v1.2.3-18-g5258