-
Hi I'm migrating plugin manager from packer to Lazy.nvim, and I got some issue about Luasnip. I would like to organize the snippets by filetype subdirectories (see ejmastnak's page -- Snippet filetype subdirectories). In packer time, I just have the following line in some
where the structure after
The
Then, whenever opening Now using Lazy.nvim, I set
When opening a Furthermore, it also doesn't work even though I put Could someone help? Thanks! Additional info
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Finally, I resolved it. Summary:
(b) if VimTeX has been installed, then the filetype of Open the file of certain filetype and execute Hope this helps. |
Beta Was this translation helpful? Give feedback.
Finally, I resolved it.
Summary:
config
field inluasnip/init.lua
must haverequire("luasnip").setup(opts)
. In this case, for example,.tex
snippet,(a) if VimTeX has not been installed yet, then the filetype of
.tex
file will beplaintex
, so the name of the directory containing snippets.lua
files must beplaintex
rath…