From 3113a9a31d4977f2c5fbbf04c62eeea969a67cf9 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 25 Apr 2023 18:35:42 -0400 Subject: [PATCH] add which-key (emacs keymap preview) --- .config/nvim/lua/ajet/packer.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.config/nvim/lua/ajet/packer.lua b/.config/nvim/lua/ajet/packer.lua index 9ddcb77..b218e96 100755 --- a/.config/nvim/lua/ajet/packer.lua +++ b/.config/nvim/lua/ajet/packer.lua @@ -110,4 +110,16 @@ return require('packer').startup(function(use) vim.keymap.set("n", "to", ":SymbolsOutline") end }) + -- Lua + use { + "folke/which-key.nvim", + config = function() + vim.o.timeout = true + vim.o.timeoutlen = 300 + require("which-key").setup { + i = { "j", "k", "", "" }, + v = { "j", "k" }, + } + end + } end)