URI:
       which-key.lua - 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
       ---
       which-key.lua (721B)
       ---
            1 return {
            2         "folke/which-key.nvim",
            3         event = "VeryLazy",
            4         keys = {
            5                 {
            6                         "<leader>?",
            7                         function()
            8                                 require("which-key").show({ global = false })
            9                         end,
           10                         desc = "Buffer Local Keymaps (which-key)",
           11                 },
           12         },
           13         config = function()
           14                 require("which-key").setup({
           15                         preset = "helix",
           16                         delay = 400,
           17                         triggers = {
           18                                 { "<auto>", mode = "nixsotc" },
           19                                 { "a", mode = { "n", "v" } },
           20                         },
           21                 })
           22 
           23                 -- fix for tmux.nvim
           24                 -- https://github.com/folke/which-key.nvim/issues/743#issuecomment-2234460129
           25                 local reg = require("which-key.plugins.registers")
           26                 local expand = reg.expand
           27                 
           28                 function reg.expand()
           29                   if vim.env.TMUX then
           30                     require("tmux.copy").sync_registers()
           31                   end
           32                   return expand()
           33                 end
           34         end,
           35 }