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

Parse snippet failures #28858

Closed
1 task
folke opened this issue May 20, 2024 · 2 comments
Closed
1 task

Parse snippet failures #28858

folke opened this issue May 20, 2024 · 2 comments
Assignees
Labels
bug issues reporting wrong behavior snippet

Comments

@folke
Copy link
Member

folke commented May 20, 2024

Problem

This is a tracking issue for snippets I encountered that fail to parse using vim.snippet.expand

Snippets

  • Recursive placeholders don't seem to be supported
    f = io.open(${1:"${2:filename}"}, "${3:r}")
    
    while true do
        line = f:read()
        if line == nil then break end
    
        ${0:-- code}
    end

Neovim version (nvim -v)

nightly

@folke folke added the bug issues reporting wrong behavior label May 20, 2024
@MariaSolOs
Copy link
Member

Yes, this is part of the snippet roadmap: #25696

I’m confused about the title of this issue though. Wdym with parsing snippet failures @folke?

@folke
Copy link
Member Author

folke commented May 20, 2024

I wasn't aware of the roadmap and current limitations, so thank you for pointing that out.

I've added a work around for nested placeholders in LazyVim.

Closing...

@folke folke closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues reporting wrong behavior snippet
Projects
None yet
Development

No branches or pull requests

3 participants