ecosse3 / nvim

A non-minimal Neovim config built to work most efficiently with Frontend Development
GNU General Public License v3.0
1.21k stars 109 forks source link

How to use the log snippet? #105

Closed d0t15t closed 1 year ago

d0t15t commented 1 year ago

In a previous version of ecovim, it was possible to add a console.log(...) with a snippet by typing log. Now it seems to have changed, and we can use a variable? How does this work? Many thanks!

akiletour commented 1 year ago

CleanShot 2022-10-18 at 12 24 43

In my project, it's now the last autocompletion entry.

1 month ago, @ecosse3 applied a fix in order to deprioritize snippets https://github.com/ecosse3/nvim/commit/9dccb4b48a8789a6019f6c0533542b61bdfa77b7

You can remove the deprioritize_snippet in the comparators object (line 168) to rollback

ecosse3 commented 1 year ago

@d0t15t Does previous comment solve your issue? I can confirm that order of snippets has been deprioritized.