fix: tmux not working with nvim

This commit is contained in:
Lucas Barbieri 2024-07-15 10:10:54 -03:00
parent 6321325338
commit 8227a0cddc
2 changed files with 5 additions and 33 deletions

View File

@ -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
}

View File

@ -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'