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

plugin: conjure sub-menu key labels in which-key version 3 #8

Closed
practicalli-johnny opened this issue Jul 19, 2024 · 1 comment
Closed

Comments

@practicalli-johnny
Copy link
Contributor

practicalli-johnny commented Jul 19, 2024

Which-key version 3 has been release making it even easier to define key mappings and add labels.

Which-key uses the group key to define a sub-menu.

<localleader> can be used to define the groups should be under the , local leader key mapping

In theory, adding code to the n normal section of lua/plugins/user-practicalli.lua should set labels on the sub-menus.

Example:

          -- Clojure Conjure sub-menu
          ["<LocalLeader>c"] = { group = "Connection" },
          ["<LocalLeader>e"] = { group = "Evaluate" },
          ["<LocalLeader>g"] = { group = "Go" },
          ["<LocalLeader>l"] = { group = "REPL Log" },
          ["<LocalLeader>r"] = { group = "Reset REPL State" },
          ["<LocalLeader>s"] = { group = "REPL Session" },
          ["<LocalLeader>t"] = { group = "Test" },
          ["<LocalLeader>v"] = { group = "Value" },

NOTE: One challenge is that its not obvious if these names or indeed the localleader key mappings for conjure can be specific to clojure mode.
This concern was discussed in Olical/conjure#585

@practicalli-johnny
Copy link
Contributor Author

Settting the sub-menus in the which-key configuration for the moment

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