mellow.nvim
mellow.nvim copied to clipboard
Vim compatibility error
Hello there!
Nice colorscheme :) Sadly I have a problem. I use
vim --version
VIM - Vi IMproved 9.2 (2026 Feb 14, compiled May 18 2026 20:46:24)
macOS version - arm64
Included patches: 1-500
Compiled by Homebrew
Huge version without GUI. Features included (+) or not (-):
+acl +file_in_path +mouse_xterm -tag_any_white
+arabic +find_in_path +multi_byte -tcl
+autocmd +float +multi_lang +termguicolors
+autochdir +folding -mzscheme +terminal
-autoservername -footer +netbeans_intg +terminfo
-balloon_eval +fork() +num64 +termresponse
+balloon_eval_term +gettext +packages +textobjects
-browse -hangul_input +path_extra +textprop
++builtin_terms +iconv +perl +timers
+byte_offset +insert_expand +persistent_undo +title
+channel +ipv6 +popupwin -toolbar
+cindent +job +postscript +user_commands
+clientserver +jumplist +printer +vartabs
+clipboard +keymap +profile +vertsplit
+clipboard_provider +lambda -python +vim9script
+cmdline_compl +langmap +python3/dyn +viminfo
+cmdline_hist +libcall +quickfix +virtualedit
+cmdline_info +linebreak +reltime +visual
+comments +lispindent +rightleft +visualextra
+conceal +listcmds +ruby/dyn +vreplace
+cryptv +localmap +scrollbind -wayland
+cscope +lua/dyn +signs -wayland_clipboard
+cursorbind +menu +smartindent +wildignore
+cursorshape +mksession +socketserver +wildmenu
+dialog_con +modify_fname +sodium +windows
+diff +mouse +sound +writebackup
+digraphs -mouseshape +spell -X11
-dnd +mouse_dec +startuptime -xattr
-ebcdic -mouse_gpm +statusline -xfontset
+emacs_tags -mouse_jsbterm -sun_workshop -xim
+eval +mouse_netterm +syntax -xpm
+ex_extra +mouse_sgr +tabpanel -xsmp
+extra_search -mouse_sysmouse +tag_binary -xterm_clipboard
-farsi +mouse_urxvt -tag_old_static -xterm_save
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
3rd user vimrc file: "~/.config/vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/opt/homebrew/share/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X -DMACOS_X_DARWIN -g -O2 -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang -Wl,-rpath,@loader_path/../../../../opt/lua/lib -Wl,-rpath,@loader_path/../../../../opt/[email protected]/lib -Wl,-rpath,@loader_path/../../../../opt/ruby/lib -o vim -lm -lncurses -lsodium -liconv -lintl -framework AppKit -fstack-protector-strong -L/System/Library/Perl/5.34/darwin-thread-multi-2level/CORE -lperl
and after Plug installing this i get:
vim tmp
Error detected while processing /Users/pepe/.vimrc[277]../Users/pepe/.vim/plugged/mellow.nvim/colors/mellow.vim:
line 2:
/Users/pepe/.vim/plugged/mellow.nvim/lua/mellow/init.lua:529: attempt to index a nil value (field 'api')
Press ENTER or type command to continue
After some inspection it seems like the colorscheme is not prepared for vim (it has no vimscript), but the examples in the README confuse me because they insinuate that vim is OK.
That being said, I know it's 2026 so probably i should use nvim and just shut up... but probably I will try to patch this