You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a light-background terminal so that neovim automatically sets background to "light", some syntax highlighting doesn't work properly. In particular I've found that HTML bold and italic (this includes Markdown as well) don't get applied. I've reproduced this both with lazy.nvim (included repro.lua) as well as mini.deps, both with no other plugins or configuration beyond setting up the plugin manager, loading the plugin, and setting the colorscheme.
I've found three workarounds:
Explicitly set background to "light" in the config file, either before or after running colorscheme catppuccin.
Explicitly set flavour="latte" when loading the catppuccin plugin.
Don't run the colorscheme command from an config file; instead let the default colorscheme load and then set the colorscheme manually once the buffer is opened. (I guess an autocmd could do this.)
If I don't apply any of the workarounds and then try to change the colorscheme to another theme, or change background, the issue persists, even with colorschemes where this issue doesn't normally occur (including the other (dark) catppuccin flavours). The only way I've found to fix it is to quit nvim and apply one of the workarounds as above.
This problem doesn't seem to affect the other theme I tested, Rosé Pine.
Make sure terminal uses a light background so that nvim starts with background set to "light".
nvim -u repro.lua
Expected behavior
Actual behavior
Repro
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"catppuccin/nvim",
-- add any other plugins here
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("catppuccin")
-- add anything else here
The text was updated successfully, but these errors were encountered:
Description
When using a light-background terminal so that neovim automatically sets
background
to"light"
, some syntax highlighting doesn't work properly. In particular I've found that HTML bold and italic (this includes Markdown as well) don't get applied. I've reproduced this both with lazy.nvim (includedrepro.lua
) as well as mini.deps, both with no other plugins or configuration beyond setting up the plugin manager, loading the plugin, and setting the colorscheme.I've found three workarounds:
background
to"light"
in the config file, either before or after runningcolorscheme catppuccin
.flavour="latte"
when loading the catppuccin plugin.colorscheme
command from an config file; instead let the default colorscheme load and then set the colorscheme manually once the buffer is opened. (I guess anautocmd
could do this.)If I don't apply any of the workarounds and then try to change the colorscheme to another theme, or change
background
, the issue persists, even with colorschemes where this issue doesn't normally occur (including the other (dark) catppuccin flavours). The only way I've found to fix it is to quit nvim and apply one of the workarounds as above.This problem doesn't seem to affect the other theme I tested, Rosé Pine.
Neovim version
Terminal and multiplexer
GNOME terminal 3.54.2
Catppuccin version / branch / rev
faf15ab
Steps to reproduce
background
set to"light"
.nvim -u repro.lua
Expected behavior
Actual behavior
Repro
The text was updated successfully, but these errors were encountered: