nvim: which-key fixes - dotfiles - 🍚 personal arsenal of "rice"
HTML git clone https://git.drkhsh.at/dotfiles.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit d91e4505057cbdcc78cceea4e7274ef58e4da443
DIR parent 2d2872c1abce286530e3e0563bb8af87f15158af
HTML Author: drkhsh <me@drkhsh.at>
Date: Thu, 5 Sep 2024 00:52:39 +0200
nvim: which-key fixes
Diffstat:
M vim/.config/nvim/lua/plugins/which… | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
---
DIR diff --git a/vim/.config/nvim/lua/plugins/which-key.lua b/vim/.config/nvim/lua/plugins/which-key.lua
@@ -1,14 +1,18 @@
return {
"folke/which-key.nvim",
- keys = { "<leader>" },
+ event = "VeryLazy",
+ keys = {
+ {
+ "<leader>?",
+ function()
+ require("which-key").show({ global = false })
+ end,
+ desc = "Buffer Local Keymaps (which-key)",
+ },
+ },
config = function()
require("which-key").setup({
- plugins = {
- spelling = {
- enabled = true,
- suggestions = 20,
- },
- },
+ preset = "helix",
delay = 400,
triggers = {
{ "<auto>", mode = "nixsotc" },