forked from dineshsalunke/nvim-config
refactor: lua snip config updated
This commit is contained in:
parent
6422e8f548
commit
97959e7612
@ -2,10 +2,8 @@ return {
|
|||||||
|
|
||||||
{
|
{
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
version = "2.*",
|
version = "v2.*",
|
||||||
build = (not jit.os:find("Windows"))
|
build = "make install_jsregexp",
|
||||||
and "echo 'NOTE: jsregexp is optional, so not a big deal if it fails to build'; make install_jsregexp"
|
|
||||||
or nil,
|
|
||||||
opts = {
|
opts = {
|
||||||
history = true,
|
history = true,
|
||||||
delete_check_events = "TextChanged",
|
delete_check_events = "TextChanged",
|
||||||
@ -16,7 +14,7 @@ return {
|
|||||||
history = true,
|
history = true,
|
||||||
delete_check_events = "TextChanged",
|
delete_check_events = "TextChanged",
|
||||||
})
|
})
|
||||||
require("luasnip.loaders.from_lua").load({ paths = "~/snippets" })
|
require("luasnip.loaders.from_lua").load({ paths = { "~/snippets" } })
|
||||||
end,
|
end,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"hrsh7th/nvim-cmp",
|
"hrsh7th/nvim-cmp",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user