summaryrefslogtreecommitdiff
path: root/lua/lv-which-key/init.lua
diff options
context:
space:
mode:
authorChris <[email protected]>2021-07-06 20:42:29 -0400
committerChris <[email protected]>2021-07-06 20:42:29 -0400
commit716f127e95b71bdc1f1ebb960b381ba50b10c1fe (patch)
tree0683b852e4f54cfeaf98c206f9049e4ee130ddbb /lua/lv-which-key/init.lua
parent0e2ad0c1fec50a24177129c89b3edb9007776caf (diff)
wrap requires in pcall
Diffstat (limited to 'lua/lv-which-key/init.lua')
-rw-r--r--lua/lv-which-key/init.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/lua/lv-which-key/init.lua b/lua/lv-which-key/init.lua
index 8edb244b..42547916 100644
--- a/lua/lv-which-key/init.lua
+++ b/lua/lv-which-key/init.lua
@@ -1,8 +1,12 @@
-- if not package.loaded['which-key'] then
-- return
-- end
+local status_ok, which_key = pcall(require, "which-key")
+if not status_ok then
+ return
+end
-require("which-key").setup {
+which_key.setup {
plugins = {
marks = true, -- shows a list of your marks on ' and `
registers = true, -- shows your registers on " in NORMAL or <C-r> in INSERT mode