Saghen / blink.cmp

Performant, batteries-included completion plugin for Neovim
MIT License
631 stars 26 forks source link

Completion not working properly with clangd and friendly-snippets active #67

Open allpandasarecute opened 1 day ago

allpandasarecute commented 1 day ago

This is example of completion not working with clangd with active friendly-snippets (first picture - with snippets, second - without (removed as a dependency)) It's not showing print function, declared just before main

config (lazy.nvim):

return {
    {
        "Saghen/blink.cmp",
        lazy = false,
        dependencies = "rafamadriz/friendly-snippets",
        version = "v0.*",
        opts = {
            highlight = {
                use_nvim_cmp_as_default = true,
            },
            keymap = {
                show = "<C-space>",
                hide = "<C-e>",
                accept = "<Tab>",
                select_prev = "<C-l>",
                select_next = "<C-k>",
                scroll_documentation_up = "<C-u>",
                scroll_documentation_down = "<C-d>",
            },
            windows = {
                autocomplete = { border = "rounded" },
                documentation = { border = "rounded" },
                signature_help = { border = "rounded" },
            },
        },
    },
}

2024-10-09_21-28 2024-10-09_21-37