Skip to content
Discussion options

You must be logged in to vote

Finally, I resolved it.

Summary:

  1. config field in luasnip/init.lua must have require("luasnip").setup(opts). In this case, for example,
return {
  "L3MON4D3/LuaSnip",
  version = "v2.*",
  build = "make install_jsregexp",
  opts = {
    -- some opts
  },
  config = function()  
    require("luasnip").setup(opts)   -- This is necessary.
    require("luasnip.loaders.from_lua").lazy_load({paths = "~/AppData/Local/nvim/lua/plugins_config/luasnip/additional_config/languages"})
  end,
}
  1. When you need to load .tex snippet,
    (a) if VimTeX has not been installed yet, then the filetype of .tex file will be plaintex, so the name of the directory containing snippets .lua files must be plaintex rath…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hrcHarry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant