|
|
@ -1,4 +1,4 @@
|
|
|
|
-- colors
|
|
|
|
-- define some colors
|
|
|
|
|
|
|
|
|
|
|
|
local bar_fg = "#565c64"
|
|
|
|
local bar_fg = "#565c64"
|
|
|
|
local activeBuffer_fg = "#c8ccd4"
|
|
|
|
local activeBuffer_fg = "#c8ccd4"
|
|
|
@ -13,65 +13,90 @@ require "bufferline".setup {
|
|
|
|
max_name_length = 14,
|
|
|
|
max_name_length = 14,
|
|
|
|
max_prefix_length = 13,
|
|
|
|
max_prefix_length = 13,
|
|
|
|
tab_size = 20,
|
|
|
|
tab_size = 20,
|
|
|
|
enforce_regular_tabs = true,
|
|
|
|
show_tab_indicators = true,
|
|
|
|
|
|
|
|
enforce_regular_tabs = false,
|
|
|
|
view = "multiwindow",
|
|
|
|
view = "multiwindow",
|
|
|
|
show_buffer_close_icons = true,
|
|
|
|
show_buffer_close_icons = true,
|
|
|
|
separator_style = "thin"
|
|
|
|
separator_style = "thin",
|
|
|
|
|
|
|
|
mappings = "true"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- bar colors!!
|
|
|
|
highlights = {
|
|
|
|
highlights = {
|
|
|
|
background = {
|
|
|
|
fill = {
|
|
|
|
guifg = bar_fg,
|
|
|
|
guifg = bar_fg,
|
|
|
|
guibg = "#282c34"
|
|
|
|
guibg = "#252931"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
fill = {
|
|
|
|
background = {
|
|
|
|
guifg = bar_fg,
|
|
|
|
guifg = bar_fg,
|
|
|
|
guibg = "#282c34"
|
|
|
|
guibg = "#252931"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
-- focused window
|
|
|
|
|
|
|
|
|
|
|
|
-- buffer
|
|
|
|
buffer_selected = {
|
|
|
|
buffer_selected = {
|
|
|
|
guifg = activeBuffer_fg,
|
|
|
|
guifg = activeBuffer_fg,
|
|
|
|
guibg = "#1e222a",
|
|
|
|
guibg = "#1e222a",
|
|
|
|
gui = "bold"
|
|
|
|
gui = "bold"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
separator_selected = {
|
|
|
|
|
|
|
|
guifg = "#1e222a",
|
|
|
|
|
|
|
|
guibg = "#1e222a"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
-- unfocused opened window
|
|
|
|
|
|
|
|
buffer_visible = {
|
|
|
|
buffer_visible = {
|
|
|
|
guifg = "#9298a0",
|
|
|
|
guifg = "#9298a0",
|
|
|
|
guibg = "#282c34"
|
|
|
|
guibg = "#252931"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
separator_visible = {
|
|
|
|
|
|
|
|
guifg = "#282c34",
|
|
|
|
-- tabs over right
|
|
|
|
guibg = "#282c34"
|
|
|
|
tab = {
|
|
|
|
|
|
|
|
guifg = "#9298a0",
|
|
|
|
|
|
|
|
guibg = "#30343c"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
tab_selected = {
|
|
|
|
|
|
|
|
guifg = "#30343c",
|
|
|
|
|
|
|
|
guibg = "#9298a0"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
tab_close = {
|
|
|
|
|
|
|
|
guifg = "#f9929b",
|
|
|
|
|
|
|
|
guibg = "#252931"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- buffer separators
|
|
|
|
separator = {
|
|
|
|
separator = {
|
|
|
|
guifg = "#282c34",
|
|
|
|
guifg = "#252931",
|
|
|
|
guibg = "#282c34"
|
|
|
|
guibg = "#252931"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
separator_selected = {
|
|
|
|
|
|
|
|
guifg = "#1e222a",
|
|
|
|
|
|
|
|
guibg = "#1e222a"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
separator_visible = {
|
|
|
|
|
|
|
|
guifg = "#252931",
|
|
|
|
|
|
|
|
guibg = "#252931"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
indicator_selected = {
|
|
|
|
indicator_selected = {
|
|
|
|
guifg = "#282c34",
|
|
|
|
guifg = "#252931",
|
|
|
|
guibg = "#282c34"
|
|
|
|
guibg = "#252931"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- modified files (but not saved)
|
|
|
|
modified_selected = {
|
|
|
|
modified_selected = {
|
|
|
|
guifg = "#A3BE8C",
|
|
|
|
guifg = "#A3BE8C",
|
|
|
|
guibg = "#1e222a"
|
|
|
|
guibg = "#1e222a"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
modified_visible = {
|
|
|
|
|
|
|
|
guifg = "#BF616A",
|
|
|
|
|
|
|
|
guibg = "#23272f"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
local opt = {silent = true}
|
|
|
|
local opt = {silent = true}
|
|
|
|
|
|
|
|
|
|
|
|
local map = vim.api.nvim_set_keymap
|
|
|
|
local map = vim.api.nvim_set_keymap
|
|
|
|
vim.g.mapleader = " "
|
|
|
|
vim.g.mapleader = " "
|
|
|
|
|
|
|
|
|
|
|
|
--command that adds new buffer and moves to it
|
|
|
|
-- MAPPINGS
|
|
|
|
map("n", "<S-t>", [[<Cmd>tabnew<CR>]], opt)
|
|
|
|
map("n", "<S-t>", [[<Cmd>tabnew<CR>]], opt) -- new tab
|
|
|
|
|
|
|
|
map("n", "<S-x>", [[<Cmd>bdelete<CR>]], opt) -- close tab
|
|
|
|
--removing a buffer
|
|
|
|
|
|
|
|
map("n", "<S-x>", [[<Cmd>bdelete<CR>]], opt)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- tabnew and tabprev
|
|
|
|
-- move between tabs
|
|
|
|
map("n", "<TAB>", [[<Cmd>BufferLineCycleNext<CR>]], opt)
|
|
|
|
map("n", "<TAB>", [[<Cmd>BufferLineCycleNext<CR>]], opt)
|
|
|
|
map("n", "<S-TAB>", [[<Cmd>BufferLineCyclePrev<CR>]], opt)
|
|
|
|
map("n", "<S-TAB>", [[<Cmd>BufferLineCyclePrev<CR>]], opt)
|
|
|
|
|
|
|
|
|
|
|
|