---@type LazySpec
return {
-- snippets
- {
- "L3MON4D3/LuaSnip",
- -- disable luasnip bindings for <tab> and <s-tab>
+ { "l3mon4d3/luasnip",
+ build = "make install_jsregexp", -- optional
dependencies = {
- {
- "honza/vim-snippets",
- config = function()
- require("luasnip.loaders.from_snipmate").lazy_load()
- require("luasnip.loaders.from_lua").load({ paths = vim.fn.stdpath("config") .. "/lua/snippets" })
- end,
- },
+ { "honza/vim-snippets", },
},
+ config = function()
+ local snippets = vim.fn.stdpath("config").."/snippets"
+ require("luasnip.loaders.from_snipmate").load({ paths = { snippets }})
+ require("luasnip.loaders.from_lua").load({ paths = { snippets }})
+ end,
keys = function()
return {}
end,
opts = {
+ history = true,
+ delete_check_events = "TextChanged",
store_selection_keys = "<Tab>",
},
},
opts = {
library = {
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
- { path = "LazyVim", words = { "LazyVim" } },
{ path = "snacks.nvim", words = { "Snacks" } },
{ path = "lazy.nvim", words = { "LazySpec" } },
},