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

Modularize theme selection for whichkey's telescope commands #104

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ClashTheBunny
Copy link

Currently, each whichkey is configured slightly differently based on the
type of theme used for it. This makes them all structured the same so
that it's easier to switch between dropdown or ivy. The nice thing is
that one can then replace ivy{} with dropdown{} more easily.

Currently, each whichkey is configured slightly differently based on the
type of theme used for it.  This makes them all structured the same so
that it's easier to switch between dropdown or ivy.  The nice thing is
that one can then replace ivy{} with dropdown{} more easily.
@ClashTheBunny
Copy link
Author

An example would be if you wanted consistency for live_grep vs the other usage of telescope:

❯ git diff                                                                                                                                                               [22:57:27]
diff --git i/lua/user/whichkey.lua w/lua/user/whichkey.lua
index 6e784ea..053b221 100644
--- i/lua/user/whichkey.lua
+++ w/lua/user/whichkey.lua
@@ -80,7 +80,7 @@ local opts = {

 local buffer_theme = "dropdown{previewer = false}"
 local find_file_theme = "dropdown{previewer = false}"
-local find_text_theme = "ivy{}"
+local find_text_theme = "dropdown{}"

 local mappings = {
   ["a"] = { "<cmd>Alpha<cr>", "Alpha" },

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

Successfully merging this pull request may close these issues.

1 participant