AlphaTechnolog / pywal.nvim

pywal.nvim is a reimplementation of pywal.vim to support a few lua plugins like nvim-tree, telescope, bufferline, etc
122 stars 26 forks source link

Neovim : vim.hightlight.create is deprecated #17

Open arctenis opened 1 year ago

arctenis commented 1 year ago

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.

mbpowers commented 1 year ago

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