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

nvim error when expanding commands from shell #1495

Open
divramod opened this issue Sep 3, 2023 · 1 comment
Open

nvim error when expanding commands from shell #1495

divramod opened this issue Sep 3, 2023 · 1 comment

Comments

@divramod
Copy link

divramod commented Sep 3, 2023

when using nvim with honza/vim-snippets installed, this snippet

snippet io-til "io-til"
	`#!/bin/bash
	echo hello world
	`

causes this error

E5108: Error executing lua ...pack/packer/start/LuaSnip/lua/luasnip/util/functions.lua:39: nvim_exec2(): Vim(echo):E121: Undefined variable: #
stack traceback:
        [C]: in function 'nvim_exec'
        ...pack/packer/start/LuaSnip/lua/luasnip/util/functions.lua:39: in function 'fn'
        ...k/packer/start/LuaSnip/lua/luasnip/nodes/dynamicNode.lua:148: in function 'update'
        .../pack/packer/start/LuaSnip/lua/luasnip/nodes/snippet.lua:849: in function 'update'
        .../pack/packer/start/LuaSnip/lua/luasnip/nodes/snippet.lua:616: in function 'trigger_expand'
        ...nvim/site/pack/packer/start/LuaSnip/lua/luasnip/init.lua:244: in function 'snip_expand'
        ...e/pack/packer/start/cmp_luasnip/lua/cmp_luasnip/init.lua:143: in function 'execute'
        .../nvim/site/pack/packer/start/nvim-cmp/lua/cmp/source.lua:404: in function 'execute'
        ...e/nvim/site/pack/packer/start/nvim-cmp/lua/cmp/entry.lua:485: in function 'execute'
        ...re/nvim/site/pack/packer/start/nvim-cmp/lua/cmp/core.lua:503: in function <...re/nvim/site/pack/packer/start/nvim-cmp/lua/cmp/core.lua:502>
        ...te/pack/packer/start/nvim-cmp/lua/cmp/utils/feedkeys.lua:47: in function <...te/pack/packer/start/nvim-cmp/lua/cmp/utils/feedkeys.lua:45>

is there anybody with an idea?
do i have to set something up in nvim?

@lpil
Copy link
Collaborator

lpil commented Sep 3, 2023

Hello! If you're having issues with custom snippets I'm afraid we cannot help. You may want to open an issue with the snippet engine plugin you are using.

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

2 participants