nvim: add which-key
This commit is contained in:
@@ -16,3 +16,4 @@ require("plugins.snacks")
|
|||||||
require("plugins.telescope")
|
require("plugins.telescope")
|
||||||
require("plugins.surround")
|
require("plugins.surround")
|
||||||
require("plugins.treesitter")
|
require("plugins.treesitter")
|
||||||
|
require("plugins.which-key")
|
||||||
|
|||||||
8
nvim/.config/nvim/lua/plugins/which-key.lua
Normal file
8
nvim/.config/nvim/lua/plugins/which-key.lua
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
vim.pack.add({ "https://github.com/folke/which-key.nvim" })
|
||||||
|
|
||||||
|
local ok, whichkey = pcall(require, "which-key")
|
||||||
|
if ok then
|
||||||
|
whichkey.setup({ preset = "helix", delay = 1000 })
|
||||||
|
else
|
||||||
|
print("plugin whichkey missing")
|
||||||
|
end
|
||||||
@@ -86,6 +86,10 @@
|
|||||||
"rev": "3333a52ff548ba0a68af6d8da1e54f9cd96e9179",
|
"rev": "3333a52ff548ba0a68af6d8da1e54f9cd96e9179",
|
||||||
"src": "https://github.com/nvim-telescope/telescope.nvim",
|
"src": "https://github.com/nvim-telescope/telescope.nvim",
|
||||||
"version": "'v0.2.1'"
|
"version": "'v0.2.1'"
|
||||||
|
},
|
||||||
|
"which-key.nvim": {
|
||||||
|
"rev": "3aab2147e74890957785941f0c1ad87d0a44c15a",
|
||||||
|
"src": "https://github.com/folke/which-key.nvim"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user