fix: tmux not working with nvim
This commit is contained in:
parent
6321325338
commit
8227a0cddc
@ -4,36 +4,6 @@ return {
|
|||||||
dependencies = { 'nvim-tree/nvim-web-devicons', "water-sucks/darkrose.nvim" },
|
dependencies = { 'nvim-tree/nvim-web-devicons', "water-sucks/darkrose.nvim" },
|
||||||
event = "BufEnter",
|
event = "BufEnter",
|
||||||
config = function()
|
config = function()
|
||||||
local highlights = {}
|
require('bufferline').setup({})
|
||||||
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,
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
@ -118,15 +118,17 @@ elseif fileContent == "solarized" then
|
|||||||
lazy = false,
|
lazy = false,
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function()
|
config = function()
|
||||||
vim.o.background = 'dark' -- or 'light'
|
vim.o.background = 'dark'
|
||||||
|
vim.o.termguicolors = true
|
||||||
|
|
||||||
require('solarized').setup({
|
require('solarized').setup({
|
||||||
enables = {
|
enables = {
|
||||||
|
bufferline = true,
|
||||||
cmp = true,
|
cmp = true,
|
||||||
},
|
},
|
||||||
pallete = "solarized",
|
pallete = "solarized",
|
||||||
theme = "neo",
|
theme = "neo",
|
||||||
transparent = true,
|
transparent = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.cmd.colorscheme 'solarized'
|
vim.cmd.colorscheme 'solarized'
|
||||||
|
Loading…
Reference in New Issue
Block a user