-
Notifications
You must be signed in to change notification settings - Fork 8
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
no snippet with that name #27
Comments
Thanks for the report, should be working now. By the way, if you are using
It's not out of the box, but I made it quite configurable, so for very basic snippets it's theoretically possible to configure it roughly to match the old syntax. Although I never tried to and I suspect rewriting snippet would be easier.
I'm more than happy to put a link to such collection into README like other snippet plugins do, but shipping them by default would be not a good idea since users (including me) would often prefer having their own (and not worrying about overlaps). |
Thanks so much for the quick turnaround -- that merge fixed the problem! I see what you mean about backwards compatibility -- it's rather trivial to convert to the new syntax. That's the good news. The bad news is this:
The error occurs, of course, when I try to complete a snip name with I am installing as follows:
I suspect the problem has something to with the mixed-case name of Incidentally, to avoid this problem for my snipit files, I have the location as follows:
The reason I had set the value to the default location in my original post of the issue was because i had been experimenting with this kind of thing because of the potential for issues with mixed case. Does this explanation sound all plausible? Have you run into it before with macos (of course I searched the issues but nothing jumped out at me). Does a workaround come to mind? Many thanks! |
Interesting, could you please submit a issue for this too? |
Hi,
I just got started with joereynolds/vim-minisnip and a decent set of snips from @Gavinok's dotfiles .
It's a wonderful plugin, elegantly simple and doesn't get in my way.
Then I found miniSnip. I would much rather build my snips collection for this modern version. So I am giving it a try.
I installed it with
Plug 'Jorengarenar/miniSnip'
and configured as follows:Per the readme, I created a file
foo.snip
and placed it in~/.vim/miniSnip/all
.When I type
foo
and then hit<C-g>
, I get the error messageminiSnip: no snippet with that name
. I am totally not a vimscript coder, but from looking at theminiSnip#trigger()
function, it's pretty clear (I think) that it doesn't matter what is in the file: if it is not found, it isn't parsed.I cannot figure out what I've done wrong -- I must be missing something simple.
Also, a question. Once I resolve the snip loading issue, the snips I have are for the joereynolds version and therefore have a different syntax from miniSnips. Is miniSnips backwards compatible?
If it is not, and assuming all else is tests well with miniSnip, I will likely convert the older snips to the new syntax. Seems like a small collection like this would make a good addition to miniSnip -- I would be happy to do a pull request if it sounds like such a thing would be useful.
Many thanks for your work on this plugin!
--Phil
The text was updated successfully, but these errors were encountered: