2021-03-12 20:23:02 -05:00
|
|
|
vim.o.termguicolors = true
|
2021-03-07 09:22:30 -05:00
|
|
|
|
2021-03-13 05:51:52 -05:00
|
|
|
-- colors for active , inactive buffer tabs
|
2021-03-12 20:23:02 -05:00
|
|
|
require "bufferline".setup {
|
|
|
|
options = {
|
|
|
|
buffer_close_icon = "",
|
|
|
|
modified_icon = "●",
|
2021-03-18 09:49:45 -04:00
|
|
|
close_icon = "",
|
2021-03-12 20:23:02 -05:00
|
|
|
left_trunc_marker = "",
|
|
|
|
right_trunc_marker = "",
|
|
|
|
max_name_length = 14,
|
|
|
|
max_prefix_length = 13,
|
|
|
|
tab_size = 18,
|
|
|
|
enforce_regular_tabs = true,
|
|
|
|
view = "multiwindow",
|
|
|
|
show_buffer_close_icons = true,
|
|
|
|
separator_style = "thin"
|
2021-03-07 09:22:30 -05:00
|
|
|
},
|
2021-03-12 20:23:02 -05:00
|
|
|
highlights = {
|
2021-03-07 09:22:30 -05:00
|
|
|
background = {
|
2021-03-12 20:23:02 -05:00
|
|
|
guifg = comment_fg,
|
|
|
|
guibg = "#282c34"
|
|
|
|
},
|
|
|
|
fill = {
|
|
|
|
guifg = comment_fg,
|
|
|
|
guibg = "#282c34"
|
|
|
|
},
|
2021-03-07 09:22:30 -05:00
|
|
|
buffer_selected = {
|
2021-03-12 20:23:02 -05:00
|
|
|
guifg = normal_fg,
|
|
|
|
guibg = "#3A3E44",
|
|
|
|
gui = "bold"
|
|
|
|
},
|
|
|
|
separator_visible = {
|
|
|
|
guifg = "#282c34",
|
|
|
|
guibg = "#282c34"
|
2021-03-07 09:22:30 -05:00
|
|
|
},
|
|
|
|
separator_selected = {
|
2021-03-12 20:23:02 -05:00
|
|
|
guifg = "#282c34",
|
|
|
|
guibg = "#282c34"
|
|
|
|
},
|
|
|
|
separator = {
|
|
|
|
guifg = "#282c34",
|
|
|
|
guibg = "#282c34"
|
|
|
|
},
|
|
|
|
indicator_selected = {
|
|
|
|
guifg = "#282c34",
|
|
|
|
guibg = "#282c34"
|
|
|
|
},
|
2021-03-07 09:22:30 -05:00
|
|
|
modified_selected = {
|
2021-03-12 20:23:02 -05:00
|
|
|
guifg = string_fg,
|
|
|
|
guibg = "#3A3E44"
|
|
|
|
}
|
|
|
|
}
|
2021-03-07 09:22:30 -05:00
|
|
|
}
|
2021-03-18 09:49:45 -04:00
|
|
|
|
|
|
|
local opt = {silent = true}
|
|
|
|
|
|
|
|
vim.g.mapleader = " "
|
|
|
|
|
|
|
|
-- tabnew and tabprev
|
|
|
|
vim.api.nvim_set_keymap("n", "<Leader>tn", [[<Cmd>BufferLineCycleNext<CR>]], opt)
|
|
|
|
vim.api.nvim_set_keymap("n", "<Leader>tp", [[<Cmd>BufferLineCyclePrev<CR>]], opt)
|
|
|
|
|
|
|
|
|