Skip to content

Broken LaTeX snippet #595

@Silzinc

Description

@Silzinc

Hello! I have tried this on a rather simple installation (the docker version of LazyVim with their TeX extra). There are two snippets for begin, one of them is builtin, the other (the friendly-snippets one) is broken:

Failed to parse snippet
/usr/share/nvim/runtime/lua/vim/lsp/_snippet_grammar.lua:178: snippet parsing failes
```tex
\\begin{${1:env}}
  ${1/(enumerate|itemize|list)|(description)|(.*)/${1:+\item }${2:+\item[] }${3:+}/}$0
\\end{${1:env}}
```

I guess this is made for inserting an \item automatically when the $1 is itemize, list or enumerate. But for now it just crashes :/ Also, if it is repaired, is it possible to remove the builtin one which just has less capabilities? I don't know how to do that. Thanks in advance if someone can solve this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions