garymjr / nvim-snippets

Snippet support using native neovim snippets
MIT License
215 stars 13 forks source link

How to disable snippet source programmatically? #42

Closed Urie96 closed 2 months ago

Urie96 commented 2 months ago

I want to enable snippet only when there are at least two letters before the cursor. Is is possible? Now: image

garymjr commented 2 months ago

You can use the keyword_length field when setting the snippet source {name = 'snippets', keyword_length = 2}