Skip to content

rustic-mode breaks hl-todo-mode on occasions #67

Open
@InnocentZero

Description

@InnocentZero

I have no idea what's happening here exactly, but here are the screenshots

image

This is right after opening a rust buffer, and eglot indexing being done.

If I switch to rust-mode:

image

The TODO: bit gets highlighted again.

Switching back to rustic-mode lets it remain highlighted.

Alternatively, if I just move text around the todo a little bit, it highlights the TODO.

image

I'm opening an issue here instead of hl-todo's repo because it works outside of rustic-mode. Anyways, I'd also like for @tarsius to have a look.

My config for both:

(use-package
 rustic
 :init (setq rustic-lsp-client 'eglot)
 :config (setq rustic-format-on-save t)
 :custom
 (rustic-analyzer-command '("rustup" "run" "stable" "rust-analyzer"))
 (rustic-cargo-use-last-stored-arguments t))

  (use-package
   hl-todo
   :config
   (setq
    hl-todo-highlight-punctuation ":"
    hl-todo-keyword-faces
    '(("TODO" . "#CC3333")
      ("FIXME" . "#FF0000")
      ("DEBUG" . "#A020F0")
      ("GOTCHA" . "#FF4500")
      ("STUB" . "#1E90FF")))
   :hook (prog-mode . hl-todo-mode))

Thanks to everyone involved for such wonderful packages!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions