Open yaaama opened 4 months ago
I face the same problem, but one of the ways worked for me.
When I set keybindins next way, the descriptions don't apply:
(map! :map doom-leader-toggle-map
(:when (and (modulep! :tools lsp) (not (modulep! :tools lsp +eglot)))
:desc "Code-lens" "l" #'lsp-lens-mode
:desc "Line numbers" "L" #'doom/toggle-line-numbers))
But when I reproduce the way they are set up in Doom's initial configs, the descriptions apply:
(map! :leader
(:prefix-map ("t" . "toggle")
(:when (and (modulep! :tools lsp) (not (modulep! :tools lsp +eglot)))
:desc "Code-lens" "l" #'lsp-lens-mode
:desc "Line numbers" "L" #'doom/toggle-line-numbers)))
I'm using evil, if it matters.
I face the same problem, but one of the ways worked for me.
When I set keybindins next way, the descriptions don't apply:
(map! :map doom-leader-toggle-map (:when (and (modulep! :tools lsp) (not (modulep! :tools lsp +eglot))) :desc "Code-lens" "l" #'lsp-lens-mode :desc "Line numbers" "L" #'doom/toggle-line-numbers))
But when I reproduce the way they are set up in Doom's initial configs, the descriptions apply:
(map! :leader (:prefix-map ("t" . "toggle") (:when (and (modulep! :tools lsp) (not (modulep! :tools lsp +eglot))) :desc "Code-lens" "l" #'lsp-lens-mode :desc "Line numbers" "L" #'doom/toggle-line-numbers)))
I'm using evil, if it matters.
Unfortunately this does not work for me either.
Here is what I have:
(map! :leader
(:prefix-map ("t" . "toggle")
:desc "Doom profiler" "P" #'doom/toggle-profiler
:desc "Olivetti" "C" #'olivetti-mode
:desc "Outline Minor Faces" "O" #'outline-minor-faces-mode
:desc "Rainbow Mode" "c" #'rainbow-mode
:desc "Doom debug mode" "d" #'doom-debug-mode
:desc "Size indication mode" "S" #'size-indication-mode
:desc "Indent bars mode" "i" #'indent-bars-mode))
Rainbow mode is still not replacing the previous key description (Fill column indicator).
I confirm that...
I have seen others raise issues on this before but the solutions don't seem to work for me, maybe I am missing something
[X] I have read "How to Debug Issues", and will use it to provide as much information about this issue as possible.
[X] The issue can be reproduced on the latest available commit of Doom.
[X] The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. (Unstable versions end in .50, .60, or .9x)
Expected behavior
I want to rebind some keys that are occupied by module specific functions that I have not enabled, but the whichkey descriptions are not updating.
I am trying different ways of rebinding and I can't seem to figure it out, I have tried
which-key-add....
functions and unbinding the keys first to try replacing it manually but to no avail.Here are a few of the permutations I have tried:
I wanted to mention that this has been a problem for a while now and I have only gotten around to trying to investigate the problem just now (hence why the example I gave above is silly as the
<leader> s t
keys already map to a description about "Dictionaries").Thank you
Current behavior
The which key descriptions continue to say "Dictionary" and "Thesaurus"
Steps to reproduce
Rebind the leader map keys
System Information
https://pastebin.com/f4Ld7vgL