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

Commit

Permalink
fix(init): don't try to load which-key.nvim if not installed, fixes #124
Browse files Browse the repository at this point in the history
  • Loading branch information
NTBBloodbath committed Sep 26, 2021
1 parent 33074ae commit 4f87918
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ vim.defer_fn(function()
-- Load keybindings module at the end because the keybindings module cost is high
vim.defer_fn(function()
load_modules("doom.extras", { "keybindings" })
vim.cmd([[
PackerLoad which-key.nvim
]])
if not require("doom.core.functions").is_plugin_disabled("which-key") then
vim.cmd([[
PackerLoad which-key.nvim
]])
end
end, 20)
end, 0)

0 comments on commit 4f87918

Please sign in to comment.