nvim-orgmode / orgmode

Orgmode clone written in Lua for Neovim 0.9+.
https://nvim-orgmode.github.io/
MIT License
3.04k stars 134 forks source link

Error in agenda view using keywords other than TODO #33

Closed jghauser closed 3 years ago

jghauser commented 3 years ago

Describe the bug When I set up other keywords with e.g. org_todo_keywords = {'TODO', 'WAITING', 'NEXT', '|', 'DONE', 'DELEGATED'} and use one of those new keywards (e.g. 'WAITING') in an entry, then I get the following error message on opening the agenda:

20210706_21h28m13s_grim

The list of tasks still opens, but the highlighting of keywords doesn't work as soon as the first new keyword appears. 20210706_21h32m41s_grim

To Reproduce Steps to reproduce the behavior:

  1. Add the above settings to orgmode.nvim setup function
  2. Add an entry such as 'WAITING some task'
  3. Open the agenda
  4. See error

Expected behavior No error

Emacs functionality I don't know.

Screenshots see above.

System information:

kristijanhusak commented 3 years ago

Adding custom colors via https://github.com/kristijanhusak/orgmode.nvim/blob/master/DOCS.md#org_todo_keyword_faces would fix the issue, but I fixed it to properly fallback to the right color. Let me know if it works.

jghauser commented 3 years ago

It works! Thanks!