Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty name for group name #8

Open
follow39 opened this issue Mar 6, 2023 · 0 comments
Open

Empty name for group name #8

follow39 opened this issue Mar 6, 2023 · 0 comments

Comments

@follow39
Copy link

follow39 commented Mar 6, 2023

Hi there,
I'm trying to use caskey and notice some weird behaviour, it cannot set group name for whichkey when initialization with function is used. Is it suppose to be or I use the plugin wrong?
Config:

["<leader>t"] = function()
    local builtin = require('telescope.builtin')

    return {
        name = "telescope",
        mode = {'n', 'v'},

        t = {act = builtin.treesitter, desc = 'treesitter'},
        s = {act = builtin.symbols, desc = 'symbols'},
        f = {act = builtin.git_files, desc = 'git files'},
        a = {act = builtin.find_files, desc = 'find files'},
        o = {act = builtin.oldfiles, desc = 'old files'},
        l = {act = builtin.live_grep, desc = 'live grep'},
        s = {act = builtin.grep_string, desc = 'grep string'},
        c = {act = builtin.commands, desc = 'commands'},
        k = {act = builtin.keymaps, desc = 'keymaps'},
        b = { act = 
        function() 
            builtin.buffers({
                sort_mru=true, 
                ignore_current_buffer=true
            })
        end,
        desc = 'buffers'},
    }
end

Image:
Снимок экрана 2023-03-06 в 19 58 18

@follow39 follow39 changed the title Empty name for Empty name for group name Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant