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

Neovim : vim.hightlight.create is deprecated #17

@arctenis

Description

@arctenis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions