neovim: install poimandres colorscheme

This commit is contained in:
2022-10-07 21:04:55 +03:00
parent 5ca161d280
commit e23c958dcb
4 changed files with 26 additions and 2 deletions

View File

@@ -125,4 +125,20 @@ function M.toggle_locationlist()
end
end
function M.is_inside_tmux()
local TMUX = os.getenv("TMUX")
return TMUX ~= nil
end
function M.get_colorscheme()
local IS_TMUX = M.is_inside_tmux()
if IS_TMUX then
return "gruvbox-material"
else
return "poimandres"
end
end
return M