summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lua/user/core/init.lua1
-rw-r--r--lua/user/core/which-key.lua9
-rw-r--r--lua/user/plugins.lua4
3 files changed, 13 insertions, 1 deletions
diff --git a/lua/user/core/init.lua b/lua/user/core/init.lua
index 64d8e28..ba3d9dc 100644
--- a/lua/user/core/init.lua
+++ b/lua/user/core/init.lua
@@ -7,3 +7,4 @@ require 'user.core.treesitter'
require 'user.core.gitsigns'
require 'user.core.nvim-tree'
require 'user.core.lsp'
+require 'user.core.which-key'
diff --git a/lua/user/core/which-key.lua b/lua/user/core/which-key.lua
new file mode 100644
index 0000000..33e9886
--- /dev/null
+++ b/lua/user/core/which-key.lua
@@ -0,0 +1,9 @@
+local status_ok, which_key = pcall(require, "which-key")
+if not status_ok then
+ print "which-key init failed"
+ return
+end
+
+which_key.setup {
+ -- FIXME
+}
diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua
index e8efb4e..686934b 100644
--- a/lua/user/plugins.lua
+++ b/lua/user/plugins.lua
@@ -99,7 +99,9 @@ return packer.startup(function(use)
-- use 'nvim-treesitter/playground' -- TSHighlightCapturesUnderCursor, TSPlaygroundToggle, ...
-- Git
- use "lewis6991/gitsigns.nvim"
+ use 'lewis6991/gitsigns.nvim'
+
+ use 'folke/which-key.nvim'
-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins