22 lines
448 B
Lua
22 lines
448 B
Lua
local M = { "L3MON4D3/LuaSnip" }
|
|
|
|
M.lazy = true
|
|
|
|
M.build = "make install_jsregexp"
|
|
|
|
M.dependencies = { "rafamadriz/friendly-snippets" }
|
|
|
|
M.opts = {
|
|
history = true,
|
|
delete_check_events = "TextChanged",
|
|
region_check_events = "CursorMoved",
|
|
}
|
|
|
|
M.config = function(_, opts)
|
|
require("luasnip").config.setup(opts)
|
|
vim.tbl_map(function(type)
|
|
require("luasnip.loaders.from_" .. type).lazy_load()
|
|
end, { "vscode", "snipmate", "lua" })
|
|
end
|
|
|
|
return M
|