Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Disabling which-key let doomnvim configuration to fail #124

Closed
mcctuxic opened this issue Sep 21, 2021 · 7 comments
Closed

Disabling which-key let doomnvim configuration to fail #124

mcctuxic opened this issue Sep 21, 2021 · 7 comments
Labels
branch: develop For stuff regarding to development branch priority: high High priority stuff scope: bug Something isn't working

Comments

@mcctuxic
Copy link

Hi,

in doom_config.lua there is written:

    keybinds_modules = {
      -- Core doom keybindings
      core = true,
      -- Movement keybindings, jump between your windows, buffers and code
      movement = true,
      -- Leader keybindings, a bunch of useful keybindings managed by space key
      -- WARNING: disabling this will break which-key plugin if the plugin is enabled
      leader = true,
      -- Completion and snippets keybindings
      completion = true,
    },

The warning let one disable which-key in doom_modules.lua. When nvim is started, which-key will be removed. Next start this message appears: "Check you config for correctness!" which is the second half of a two line message and which first part is not displayed and contains supposedly the information, what has gone wrong. Enabling which-key again fixes that problem...but it
is in contradiction to what the Warning implies.

@NTBBloodbath
Copy link
Collaborator

Hey, can you please delete the which-key plugin again and send the output of :mess when the error is raised?

I think it's probably that packer isn't running :PackerCompile as it should so the plugin/packer_compiled.lua could still have the which-key plugin entry 🤔

@NTBBloodbath NTBBloodbath added the branch: develop For stuff regarding to development branch label Sep 22, 2021
@mcctuxic
Copy link
Author

mcctuxic commented Sep 22, 2021

Hey,
Here are the results: I removed which-key from the config and started nvim. I got a message about removing which-key (1st.png), to which I agreed. Nothing more was displayed then. I run PackerSync then and ended nvim. After restarting nvim I got the message "Check your configuration for correctness"-message and gave the command ":mess" which displayed the message as given in 2nd.png. Then I did a PackerCompile, ended nvim and restarted nvim and got the "Check your configuration...."-message again. 3rd.png shows the message I got after submitting ":mess" again.
Then I reenabled which-key and got message 4th.jpg...which seems somehow unlogical to me...
1st
2nd
3rd
4th

@osamuaoki
Copy link
Contributor

Did you type Y to the questions?

@mcctuxic
Copy link
Author

mcctuxic commented Sep 26, 2021 via email

@NTBBloodbath
Copy link
Collaborator

Hi, I think I caught what the error is. I was wrongly assuming that which-key is present and trying to load it in our init file. I'll fix it asap.

Regards

@NTBBloodbath
Copy link
Collaborator

Please update Doom and let me know if this still happens

@mcctuxic
Copy link
Author

mcctuxic commented Sep 27, 2021 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
branch: develop For stuff regarding to development branch priority: high High priority stuff scope: bug Something isn't working
Projects
None yet
3 participants