bufferline: minor changes

This commit is contained in:
siduck76 2021-04-26 13:44:51 +05:30
parent 7fbc174485
commit ee05f20f43
2 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,3 @@
vim.o.termguicolors = true
-- colors -- colors
local bar_fg = "#565c64" local bar_fg = "#565c64"
@ -8,7 +6,7 @@ local activeBuffer_fg = "#c8ccd4"
require "bufferline".setup { require "bufferline".setup {
options = { options = {
buffer_close_icon = "", buffer_close_icon = "",
modified_icon = "", modified_icon = "",
close_icon = "", close_icon = "",
left_trunc_marker = "", left_trunc_marker = "",
right_trunc_marker = "", right_trunc_marker = "",
@ -29,6 +27,7 @@ require "bufferline".setup {
guifg = bar_fg, guifg = bar_fg,
guibg = "#1e222a" guibg = "#1e222a"
}, },
-- focused window -- focused window
buffer_selected = { buffer_selected = {
guifg = activeBuffer_fg, guifg = activeBuffer_fg,
@ -39,6 +38,7 @@ require "bufferline".setup {
guifg = "#353b45", guifg = "#353b45",
guibg = "#353b45" guibg = "#353b45"
}, },
-- unfocused opened window -- unfocused opened window
buffer_visible = { buffer_visible = {
guifg = "#9298a0", guifg = "#9298a0",
@ -48,16 +48,18 @@ require "bufferline".setup {
guifg = "#282c34", guifg = "#282c34",
guibg = "#282c34" guibg = "#282c34"
}, },
separator = { separator = {
guifg = "#1e222a", guifg = "#1e222a",
guibg = "#1e222a" guibg = "#1e222a"
}, },
indicator_selected = { indicator_selected = {
guifg = "#1e222a", guifg = "#1e222a",
guibg = "#1e222a" guibg = "#1e222a"
}, },
modified_selected = { modified_selected = {
guifg = bar_fg, guifg = "#d0f5c2",
guibg = "#353b45" guibg = "#353b45"
} }
} }

View File

@ -1,6 +1,9 @@
-- check if packer is installed (~/local/share/nvim/site/pack) -- check if packer is installed (~/local/share/nvim/site/pack)
local packer_exists = pcall(vim.cmd, [[packadd packer.nvim]]) local packer_exists = pcall(vim.cmd, [[packadd packer.nvim]])
local packer = require("packer")
local use = packer.use
-- using { } when using a different branch of the plugin or loading the plugin with certain commands -- using { } when using a different branch of the plugin or loading the plugin with certain commands
return require("packer").startup( return require("packer").startup(
function() function()