Skip to content

Commit

Permalink
Don't disable background transparency if in tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
Jendker committed Jul 22, 2024
1 parent 656ddbd commit 18174c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nvim/lua/common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ function not_vscode()
end

vscode = vim.fn.exists('g:vscode') ~= 0
TMUX = vim.fn.exists('$TMUX') ~= 0
SSH = vim.fn.exists('$SSH_CONNECTION') ~= 0
TMUX = vim.env.TMUX ~= nil
SSH = vim.env.SSH_CONNECTION ~= nil

function TableToString(o)
if type(o) == 'table' then
Expand Down
2 changes: 1 addition & 1 deletion nvim/lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ local plugins = {
"Jendker/last-color.nvim",
config = function()
local function setup_theme(theme)
local should_be_transparent = vim.o.background == 'dark' and not TMUX and not SSH
local should_be_transparent = vim.o.background == 'dark' and not SSH
local theme_extension = common.matching_string(theme, common.theme_extensions)
if theme_extension == "kanagawa" then
require("kanagawa").setup({
Expand Down

0 comments on commit 18174c7

Please sign in to comment.