AlphaTechnolog/pywal.nvim

Neovim : vim.hightlight.create is deprecated

arctenis opened this issue · 1 comments

After Neovim update, i obtained this

vim.highlight.create is deprecated, use vim.api.nvim_set_hl instead. See :h deprecated
This function will be removed in Nvim version 0.9
stack traceback:
        /usr/share/nvim/runtime/lua/vim/highlight.lua:14: in function 'hi'
       ~/.config/nvim/plugged/pywal/lua/pywal/highlights.lua:8: in function 'highlight_all'
       ~/.config/nvim/plugged/pywal/lua/pywal/init.lua:8: in function 'setup'
        [string ":lua"]:1: in main chunk

I tried to replace vim.highlight.create with vim.api.nvim_set_hl in highlights.lua but it didn't work.

I use NVIM v0.8.0 on Arch Linux.

It looks like this has been fixed with #14 and is a duplicate of #15 and can be closed.