vim.api.nvim_get_hl raises error on nvim 8.0 #2641
Unanswered
Confidenceman02
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Many thanks for raising this one; I did not think about 0.8 compatibility... Two options:
I'm happy to go with 2 as the shim is simple enough. Can you please raise a PR? You'll need to cover the one in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
NVIM v0.8.0-1210-gd367ed9b2
I'm seeing an error after updating nvim-tree to the latest version via lazy.nvim.
I believe what is going on is that neovim made a change that uses
nvim_get_hl
overnvim__get_hl_defs
, thus the error.The offending code as the stack trace points to is in
appearance.lua
This was added in this commit
Because
nvim-tree
supports nvim >=8 I would expect a guard around the api change.Messing around locally this seems to fix it.
It's a touch ugly buy you get the point hopefully.
Happy to create a pr if it's a legit bug.
Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions