Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: E5108 invalid key #110

Closed
Iron-E opened this issue Feb 17, 2023 · 2 comments · Fixed by #157
Closed

[Bug]: E5108 invalid key #110

Iron-E opened this issue Feb 17, 2023 · 2 comments · Fixed by #157

Comments

@Iron-E
Copy link

Iron-E commented Feb 17, 2023

Hello,

I was testing out this plugin after getting an issue on one of my plugins (Iron-E/nvim-libmodal#18), and wanted to post some new examples for integration with statuslines. However, I've been having trouble— I get E5108 when calling setup. I've produced a minimal example:

vim.api.nvim_set_hl(0, 'Foo', {})
require('heirline').setup {statusline = {{hl = 'Foo', provider = 'Test'}}}

The error is this:

E5108: Error executing lua ...hare/nvim/lazy/heirline.nvim/lua/heirline/highlights.lua:33: invalid key:                                                
stack traceback:
        [C]: in function 'nvim_set_hl'
        ...hare/nvim/lazy/heirline.nvim/lua/heirline/highlights.lua:33: in function 'make_hl'
        ...hare/nvim/lazy/heirline.nvim/lua/heirline/highlights.lua:103: in function 'eval_hl'
        ...hare/nvim/lazy/heirline.nvim/lua/heirline/statusline.lua:349: in function '_eval'
        ...hare/nvim/lazy/heirline.nvim/lua/heirline/statusline.lua:365: in function '_eval'
        ...hare/nvim/lazy/heirline.nvim/lua/heirline/statusline.lua:440: in function 'eval'
        ...ocal/share/nvim/lazy/heirline.nvim/lua/heirline/init.lua:89: in function <...ocal/share/nvim/lazy/heirline.nvim/lua/heirline/init.lua:84>

I'm using Neovim 0.8.3, and commit 81ceb30 of this plugin. Let me know if I'm just missing something.

@rebelot
Copy link
Owner

rebelot commented Feb 18, 2023

it should be fixed now :)

@Iron-E
Copy link
Author

Iron-E commented Feb 19, 2023

Thanks for the quick help. I was able to fully port my statusline over in no time.

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

Successfully merging a pull request may close this issue.

2 participants