theonepath.nvim/after/plugin/luasnips.lua
2024-01-27 12:44:08 +00:00

20 lines
395 B
Lua

local ok, ls = pcall(require, 'luasnip')
if not ok then
print("NO SNIPS?")
return
end
-- local types = require "luasnip.util.types"
ls.config.set_config{
-- remember the last snippet
history = true,
-- make dynamic snippets update with typing
updateevents = "TextChanged,TextChangedI",
--Autosnippets:
enable_autosnippets = true,
}
require("luasnip/loaders/from_vscode").lazy_load()