diff options
author | HampusM <hampus@hampusmat.com> | 2024-06-09 23:55:42 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-06-09 23:55:42 +0200 |
commit | 0e6d6cb1b5c4c9fc0d7b9334eee56761e23e43f8 (patch) | |
tree | 2f7c7ee6911c10ee7bc0e94fddfab969a6d81328 | |
parent | 6b3b1c9e39d573ab32b22e615a5509b721529ddf (diff) |
use bufferline.nvim
-rw-r--r-- | lua/plugins.lua | 5 | ||||
-rw-r--r-- | lua/style.lua | 41 |
2 files changed, 43 insertions, 3 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua index 569646a..ce3a2f6 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -26,6 +26,11 @@ return require("packer").startup(function(use) } use { + "akinsho/bufferline.nvim", + tag = "v4.6.1", + } + + use { "lukas-reineke/indent-blankline.nvim", tag = "v3.5.3", config = function() 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 + } + } +} |