LuaSnip-snippets.nvim icon indicating copy to clipboard operation
LuaSnip-snippets.nvim copied to clipboard

[Question] configuration

Open xyecoding opened this issue 2 years ago • 0 comments

I installed LuaSnip and LuaSnip-snippets.nvim by packer. However, it does not work. Here are my config content.

use  {
    "molleweide/LuaSnip-snippets.nvim",
  },
 use {
    "L3MON4D3/LuaSnip.git",
    config = function()
      -- local utils = require "lvim.utils"
      local luasnip = require("luasnip")
      luasnip.snippets = require("luasnip_snippets").load_snippets()

      require("luasnip.loaders.from_lua").lazy_load({
        paths = {
          "~/.local/share/lunarvim/lvim/snippets/lua"
        },
      })
      require("luasnip.loaders.from_vscode").lazy_load({
        paths = {
          "~/.local/share/lunarvim/lvim/snippets/vscode"
        },
      })
      require("luasnip.loaders.from_snipmate").lazy_load({
        paths = {
          "~/.local/share/lunarvim/lvim/snippets/snipmate"
        },
      })
    end,
  },

xyecoding avatar Apr 26 '22 07:04 xyecoding