1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

add which-key.nvim

This commit is contained in:
jdhao 2021-10-07 23:37:35 +08:00
parent c0f59bde8d
commit 96898255a0
2 changed files with 11 additions and 0 deletions

8
lua/config/which-key.lua Normal file
View File

@ -0,0 +1,8 @@
require("which-key").setup{
triggers_blacklist = {
-- list of mode / prefixes that should never be hooked by WhichKey
-- this is mostly relevant for key maps that start with a native binding
-- most people should not need to change this
n = { "o", },
},
}

View File

@ -298,6 +298,9 @@ require("packer").startup({
-- The missing auto-completion for cmdline!
use("gelguy/wilder.nvim")
-- showing keybindings
use {"folke/which-key.nvim", config = [[require('config.which-key')]]}
end,
config = {
max_jobs = 16,