You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, if I add the variable add the beginning outside of any placeholder, it loads the placeholder anywhere else in the snippet.
{
"reactArrowFunctionComponent": {
"prefix": "rafc",
"body": [
"$TM_FILENAME_BASE", // Added line to make it "work""interface $2Props {}",
"",
"export const ${1:${TM_FILENAME_BASE}}: React.FC<${1:${TM_FILENAME_BASE}}Props> = () => {",
" return (",
" $0",
" )",
"}"
],
"description": "Creates a React Arrow Function Component with ES7 module system"
}
}
I'm showing the preview since I think it makes more sense to show the issue. Let me know if I can help you with anything else since I don't understand much of the codebase to fix this myself. Thanks for the nice project, keep up with the good work! 🚀🔥💪🏽
camiloaromero23
changed the title
Snippet placeholder with variables
Snippet placeholder with variables not expanding variable
Jan 8, 2025
camiloaromero23
changed the title
Snippet placeholder with variables not expanding variable
Snippet placeholder with variables not expanding as expected
Jan 8, 2025
Also, I know it is off-topic but I have been having problems with mapping for a time, it does not work (neither for nvim-cmp before). Do you know where can I look for to solve this? I know it is not related to the plugin itself but cannot find any useful info on this 🫠
Make sure you have done the following
blink.cmp
<C-k>
on https://cmp.saghen.dev)Bug Description
Given the following snippet, the variable placeholder is not handling the variable correctly (For ease of reading, the variable is
TM_FILENAME_BASE
).However, if I add the variable add the beginning outside of any placeholder, it loads the placeholder anywhere else in the snippet.
I'm showing the preview since I think it makes more sense to show the issue. Let me know if I can help you with anything else since I don't understand much of the codebase to fix this myself. Thanks for the nice project, keep up with the good work! 🚀🔥💪🏽
Relevant configuration
No response
neovim
versionNVIM v0.11.0-dev Build type: Release LuaJIT 2.1.1713773202
blink.cmp
versionv0.10.0
The text was updated successfully, but these errors were encountered: