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

Use of deprecated method #15

Closed
AdarshI opened this issue Oct 1, 2022 · 1 comment
Closed

Use of deprecated method #15

AdarshI opened this issue Oct 1, 2022 · 1 comment

Comments

@AdarshI
Copy link

AdarshI commented Oct 1, 2022

When opening Neovim, the following error appears:

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'
        ...l/share/nvim/plugged/pywal.nvim/lua/pywal/highlights.lua:8: in function 'highlight_all'
        .../.local/share/nvim/plugged/pywal.nvim/lua/pywal/init.lua:8: in function 'setup'
        [string ":lua"]:1: in main chunk
Press ENTER or type command to continue

I believe this is in reference to local hi = vim.highlight.create in the file lua/pywal/highlights.lua

@AdarshI
Copy link
Author

AdarshI commented Oct 1, 2022

Sorry, I realized vim-plug didn't update pywal.nvim properly, and this was fixed in #14

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

1 participant