Fork me on GitHub
#emacs
<
2021-09-01
>
ag21:09:54

It's been a while since I've done any re-frame related work. For some reason imenu stopped working. Can someone tell me why I can't get re-frame subs and regs in there? This snippet used to work:

(defun add-reframe-regs-to-imenu ()
  (add-to-list
   'imenu-generic-expression
   '("re-frame" "(*reg-\\(event-db\\|sub\\|sub-raw\\|fx\\|event-fx\\|event-ctx\\|cofx\\)[ \n]+\\([^\t \n]+\\)" 2)
   t))

(add-hook 'clojurescript-mode-hook #'add-reframe-regs-to-imenu)
but not anymore

ag21:09:27

Ha, it looks like lsp messing it up, re-setting imenu-create-index-function