8-color/3-bit fallback (for tty) #759
Answered
by
vollowx
MithicSpirit
asked this question in
Q&A
-
Is your feature request related to a problem? Please describe. Describe the solution you'd like Describe alternatives you've considered |
Beta Was this translation helpful? Give feedback.
Answered by
vollowx
Aug 7, 2024
Replies: 1 comment
-
Try the following code snippet, since the default colorscheme supports TTY best. -- At where you set the colorscheme
vim.g.has_ui = #vim.api.nvim_list_uis() > 0
vim.g.has_gui = vim.g.has_ui and (vim.env.DISPLAY ~= nil or vim.env.WAYLAND_DISPLAY ~= nil)
if not vim.g.has_gui then
if vim.g.has_ui then
vim.cmd.colorscheme('default')
end
return
end
vim.cmd.colorscheme({
args = { 'catppuccin' },
mods = { emsg_silent = true },
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vollowx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try the following code snippet, since the default colorscheme supports TTY best.