Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

Neovim : vim.hightlight.create is deprecated #17

Open
arctenis opened this issue Oct 6, 2022 · 1 comment
Open

Neovim : vim.hightlight.create is deprecated #17

arctenis opened this issue Oct 6, 2022 · 1 comment

Comments

@arctenis
Copy link

arctenis commented Oct 6, 2022

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
Copy link
Contributor

mbpowers commented Oct 14, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants