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

Tab Completion don't work anymore if a command is listed in ignore_cmds #118

Open
banana59 opened this issue Oct 21, 2024 · 0 comments
Open

Comments

@banana59
Copy link

banana59 commented Oct 21, 2024

Typing :find term_to_complete*<Tab> don't work anymore when ignoring find. This somehow comes from the mapping = cmp.mapping.preset.cmdline(),. I don't know how to solve that. My config:

cmp.setup.cmdline('/', {
    mapping = cmp.mapping.preset.cmdline(),
    sources = {
        { name = 'buffer' }
    }
})

cmp.setup.cmdline(':', {
    mapping = cmp.mapping.preset.cmdline(),
    sources = cmp.config.sources({
        {
            name = 'path',
        }
    },
    {
        {
            name = 'cmdline',
            option = {
                ignore_cmds = { 'Man', '!', 'find' },
            },
        }
    }),
})
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