refactor: lua snip config updated

This commit is contained in:
Dinesh Salunke 2025-11-08 10:43:12 +05:30
parent 6422e8f548
commit 97959e7612

View File

@ -2,10 +2,8 @@ return {
{
"L3MON4D3/LuaSnip",
version = "2.*",
build = (not jit.os:find("Windows"))
and "echo 'NOTE: jsregexp is optional, so not a big deal if it fails to build'; make install_jsregexp"
or nil,
version = "v2.*",
build = "make install_jsregexp",
opts = {
history = true,
delete_check_events = "TextChanged",
@ -16,7 +14,7 @@ return {
history = true,
delete_check_events = "TextChanged",
})
require("luasnip.loaders.from_lua").load({ paths = "~/snippets" })
require("luasnip.loaders.from_lua").load({ paths = { "~/snippets" } })
end,
dependencies = {
"hrsh7th/nvim-cmp",