summaryrefslogtreecommitdiffstats
path: root/lua/user
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2023-01-18 11:40:06 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2023-01-18 11:40:06 +0100
commit7d956d065e1ee9c677af359fc786337d5f421608 (patch)
tree416f5a22339d9c22803078ac594f50203890cce5 /lua/user
parent99630ae8233f8a2afb6a89016b24a354b0186a21 (diff)
downloadvim-7d956d065e1ee9c677af359fc786337d5f421608.zip
vim-7d956d065e1ee9c677af359fc786337d5f421608.tar.gz
add which-key plugins
Diffstat (limited to 'lua/user')
-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