aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/which-key.lua
blob: ca741e39a67cf84833c6adf81f4a4f1af360a659 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
return {
    {
        "folke/which-key.nvim",
        opts = {
            spec = {
                {'<leader>t', group = 'toggle'}
            }
        },
        init = function()
            vim.o.timeout = true
            vim.o.timeoutlen = 500

            vim.keymap.set('n', '<leader>?', function()
                require("which-key").show({global = true})
            end, {desc = 'Global keymaps (which-key)'})
        end
    }
}