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
Latest Neovim, blink and setup via LazyVim. I created a ~/.config/nvim/snippets directory and copied the rails.json from the friendly-snippets plugin extras. When I open a ruby file and try out the prefix "ba" (the first in the provided snippets) I do not get any response about before_action, but instead just get ruby snippet options. I am curious as to what else I need to do to enable these extra snippets. The instructions here snippets reads to me like I can just copy the JSON into that created directory and it would work, as blink looks in that directory for any snippets by default.
Can anyone help me get it to work and inform me of the folly of my ways?
Yes. The instructions failed to mention one need also add a package.json file to the directory and add the snippet file as a directive in that directory. I picked up that from another plugin doing snippets and sure enough, when added, bingo. Snippets were there.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Latest Neovim, blink and setup via LazyVim. I created a ~/.config/nvim/snippets directory and copied the rails.json from the friendly-snippets plugin extras. When I open a ruby file and try out the prefix "ba" (the first in the provided snippets) I do not get any response about before_action, but instead just get ruby snippet options. I am curious as to what else I need to do to enable these extra snippets. The instructions here snippets reads to me like I can just copy the JSON into that created directory and it would work, as blink looks in that directory for any snippets by default.
Can anyone help me get it to work and inform me of the folly of my ways?
Beta Was this translation helpful? Give feedback.
All reactions