🏙 A clean, dark Neovim theme written in Lua, with support for lsp, treesitter and lots of plugins. Includes additional themes for Kitty, Alacritty, iTerm and Fish.
Apache License 2.0
6.44k
stars
433
forks
source link
bug: a g:terminal_color_13 not exist error when using tokyonight #608
[X] I have updated the plugin to the latest version before submitting this issue
[X] I have searched the existing issues of tokyonight.nvim
[X] I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
0.10
Operating system/version
win10/ubuntu22.04
Describe the bug
vim-plug is my (nev)vim plugins manager, and I have installed tokyonight.nvim and wrote colorscheme tokynight in neovim's init.vim, when nvim started up, an error message appeared:
Error detected while processing C:\Users\LEO\.leovim\conf.d\plugin\schemes-status.vim[312]..ColorScheme Autocommands for "*"..function glyph_palette#defaults#highlight[4]..
<lambda>3:
line 1:
E121: Undefined variable: g:terminal_color_13
Press ENTER or type command to continue
Steps To Reproduce
use vim-plug
install tokyonight
add colorschem tokyonight in init.vim
Expected Behavior
It seams to be glyph_pallete related bug, I have found solution to suppress the error message, just set g:terminal_color_13 before colorscheme command, even an empty string
let g:terminal_color_13 = ''
colorscheme tokyonight
Repro
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
spec = {
-- add any other plugins here
},
})
Did you check docs and existing issues?
Neovim version (nvim -v)
0.10
Operating system/version
win10/ubuntu22.04
Describe the bug
vim-plug
is my (nev)vim plugins manager, and I have installedtokyonight.nvim
and wrotecolorscheme tokynight
in neovim'sinit.vim
, when nvim started up, an error message appeared:Steps To Reproduce
colorschem tokyonight
ininit.vim
Expected Behavior
It seams to be glyph_pallete related bug, I have found solution to suppress the error message, just set
g:terminal_color_13
beforecolorscheme command
, even an empty stringRepro