Skip to content

Snippets do not expand #1782

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

Closed
2 tasks done
7c78 opened this issue May 17, 2025 · 0 comments
Closed
2 tasks done

Snippets do not expand #1782

7c78 opened this issue May 17, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@7c78
Copy link

7c78 commented May 17, 2025

Make sure you have done the following

  • Updated to the latest version of blink.cmp
  • Searched for existing issues and documentation (try <C-k> on https://cmp.saghen.dev)

Bug Description

Here is my configuration

snippets = {
    preset = "luasnip"
},
keymap = {
    preset = "none",

    ["<tab>"] = {"show", "select_next", "fallback"},
    ["<s-tab>"] = {"select_prev", "fallback"},
    ["<c-y>"] = {"accept", "snippet_forward", "fallback"},
    ["<c-s-y>"] = {"snippet_backward", "fallback"},
},
completion = {
    menu = {
        auto_show = false
    }
}

I am using luasnip. I have a snippet as follows

s(
    {
        trig = "\\sec1"
    },
    fmta(
        [[
            \section{<>}
        ]],
        {
            i(1, "heading")
        }
    )
)

Steps to reproduce the bug:

  • On a line, in insert mode
  • Press tab to open menu
  • Select the snippet \sec1 on the menu and press c-y -> The snippet is expanded
  • Enter normal mode
  • Press cc to clear the current line
  • Input \sec1 -> press c-y -> The snippet is not expanded.

neovim version

0.11

blink.cmp version

1.3.1

@7c78 7c78 added the bug Something isn't working label May 17, 2025
@7c78 7c78 closed this as completed May 17, 2025
@Saghen Saghen closed this as not planned Won't fix, can't repro, duplicate, stale May 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants