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

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

Open
InnocentZero opened this issue Nov 28, 2024 · 1 comment
Open

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

InnocentZero opened this issue Nov 28, 2024 · 1 comment

Comments

@InnocentZero
Copy link

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!

@InnocentZero
Copy link
Author

Forgot to add:

GNU Emacs 29.4
Copyright (C) 2024 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

emacs-wayland package on arch, compiled with nativecomp and pgtk.

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

No branches or pull requests

1 participant