garymjr / nvim-snippets

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

How can I add snippet from plugin ( ./local/share/xxx recursively ) ? #49

Closed kiuKisas closed 1 month ago

kiuKisas commented 1 month ago

E.g, I install solid-snippets through lazy.vim, so my snippets are in /home/xxx/.local/share/nvim/lazy/solid-snippets/snippets; what would be the easiest & future-proof way to add snippets installed this way ?

garymjr commented 1 month ago

You can use the search_paths option. In this case you can use search_paths = {vim.fn.stdpath('data') .. '/lazy/solid-snippets/snippets'}