diff --git a/lua/custom/plugins/bufferline.lua b/lua/custom/plugins/bufferline.lua index a0b6efe..0a7c580 100644 --- a/lua/custom/plugins/bufferline.lua +++ b/lua/custom/plugins/bufferline.lua @@ -4,36 +4,6 @@ return { dependencies = { 'nvim-tree/nvim-web-devicons', "water-sucks/darkrose.nvim" }, event = "BufEnter", config = function() - local highlights = {} - local options = {} - - local home = os.getenv("HOME") - local open = io.open - - local function read_file(path) - local file = open(path, "rb") - if not file then return nil end - local content = file:read "*l" - file:close() - return content - end - - local fileContent = read_file(string.format("%s/colorscheme", home)); - if fileContent == "red" then - highlights = require("darkrose.integrations.bufferline").generate() - options = { - show_buffer_icons = false, - } - else - options = { - show_buffer_icons = false, - diagnostics = "nvim_lsp", - } - end - - require('bufferline').setup({ - highlights = highlights, - options = options, - }) + require('bufferline').setup({}) end } diff --git a/lua/custom/plugins/colorscheme.lua b/lua/custom/plugins/colorscheme.lua index 5d89758..e84f3cf 100644 --- a/lua/custom/plugins/colorscheme.lua +++ b/lua/custom/plugins/colorscheme.lua @@ -118,15 +118,17 @@ elseif fileContent == "solarized" then lazy = false, priority = 1000, config = function() - vim.o.background = 'dark' -- or 'light' + vim.o.background = 'dark' + vim.o.termguicolors = true require('solarized').setup({ enables = { + bufferline = true, cmp = true, }, pallete = "solarized", theme = "neo", - transparent = true, + transparent = false, }) vim.cmd.colorscheme 'solarized'