From 7d956d065e1ee9c677af359fc786337d5f421608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 18 Jan 2023 11:40:06 +0100 Subject: add which-key plugins --- lua/user/core/init.lua | 1 + lua/user/core/which-key.lua | 9 +++++++++ lua/user/plugins.lua | 4 +++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 lua/user/core/which-key.lua 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 -- cgit v1.1-2-g2b99