vn-night.nvim icon indicating copy to clipboard operation
vn-night.nvim copied to clipboard

Report error message when start

Open tan-wei opened this issue 1 year ago • 5 comments

处理 ColorScheme 自动命令 "*" 时发生错误: 
E121: Undefined variable: g:colors_name 
E116: Invalid arguments for function CocHelperCallFn_m1_v0_13_0
请按 ENTER 或其它命令继续

It seems something with coc.

tan-wei avatar Aug 01 '22 14:08 tan-wei

Is it working with COC now @tan-wei.

nxvu699134 avatar Sep 20 '22 04:09 nxvu699134

Sorry for late reply. I'll try it ASAP.

tan-wei avatar Sep 20 '22 04:09 tan-wei

No, it still complains the same error. Neovim version: v0.8.0-dev-1112-g6d557e324

tan-wei avatar Sep 21 '22 14:09 tan-wei

OK, I think I find the issue:

  • I use a plugin which random choice a theme from a set, the plugin will print the name of the chosen colorscheme by echo g:color_names
  • But vn-night.nvim does not set the variable

It is easy to reproduce without the plugin:

  • Just print the name of current colorscheme by intputing command :colorscheme, neovim will just print default instead of vn-night

So set g:color_names will make this issue closed.

tan-wei avatar Aug 21 '23 09:08 tan-wei

For any other colorschemes, the variable is set properly, so should vn-night.nvim, is it?

For example

tan-wei avatar Aug 21 '23 09:08 tan-wei