feat(vim): Add bufferline for tab styling

This commit is contained in:
Tanguy Herbron 2023-04-10 02:21:36 +02:00
parent be10980b44
commit 02c6cc457f

View File

@ -42,10 +42,18 @@ require("lazy").setup({
"godlygeek/tabular", "godlygeek/tabular",
"preservim/vim-markdown", "preservim/vim-markdown",
"tpope/vim-obsession", "tpope/vim-obsession",
{
"akinsho/bufferline.nvim",
dependencies = {
"nvim-tree/nvim-web-devicons"
}
}
}) })
--- THEMING --- --- THEMING ---
vim.opt.termguicolors = true
require('ayu').setup({ require('ayu').setup({
mirage = true, mirage = true,
overrides = function() overrides = function()
@ -165,6 +173,43 @@ require("lualine").setup({
}, },
}) })
--- Bufferline (tabs) ---
-- Setup
require("bufferline").setup({
options = {
mode = "tabs",
numbers = "ordinal",
indicator = {
style = "icon"
},
color_icons = true,
show_close_icon = false,
show_buffer_close_icons = false,
show_buffer_default_icon = false,
show_duplicate_prefix = false,
hover = {
enabled = false
},
},
highlights = {
buffer_selected = {
fg = "fg",
bg = "bg",
italic = false,
},
numbers_selected = {
fg = "bg",
bg = "fg"
},
indicator_selected = {
fg = {
attribute = "fg",
highlight = "Identifier"
}
},
}
})
--- Telescope --- --- Telescope ---
require("telescope-config") require("telescope-config")
require("telescope-mappings") require("telescope-mappings")