mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2026-02-04 14:52:04 +00:00
Update 2025-02-28
Update 2025-02-14 Update 2025-02-16 Update 2025-02-21 Update 2025-02-23 Update 2025-02-25 Update 2025-02-27 Update 2025-02-28
This commit is contained in:
@@ -39,11 +39,12 @@ ls.add_snippets("lua", {
|
||||
[[
|
||||
local {} = function({})
|
||||
{}
|
||||
end
|
||||
end{}
|
||||
]],
|
||||
{
|
||||
i(1),
|
||||
i(2),
|
||||
i(3),
|
||||
i(0),
|
||||
}
|
||||
)
|
||||
|
||||
50
after/plugin/snips/markdown.lua
Normal file
50
after/plugin/snips/markdown.lua
Normal file
@@ -0,0 +1,50 @@
|
||||
if not pcall(require, "luasnip") then
|
||||
return
|
||||
end
|
||||
|
||||
local ls = require("luasnip")
|
||||
local s = ls.snippet
|
||||
local i = ls.insert_node
|
||||
local fmt = require("luasnip.extras.fmt").fmt
|
||||
|
||||
ls.add_snippets("markdown", {
|
||||
s(
|
||||
"ket",
|
||||
fmt(
|
||||
[[
|
||||
|{}angle.r{}
|
||||
]],
|
||||
{
|
||||
i(1),
|
||||
i(0),
|
||||
}
|
||||
)
|
||||
),
|
||||
s(
|
||||
"ket0",
|
||||
fmt(
|
||||
[[
|
||||
|0angle.r
|
||||
]],
|
||||
{}
|
||||
)
|
||||
),
|
||||
s(
|
||||
"ket1",
|
||||
fmt(
|
||||
[[
|
||||
|1angle.r
|
||||
]],
|
||||
{}
|
||||
)
|
||||
),
|
||||
s(
|
||||
"ketp",
|
||||
fmt(
|
||||
[[
|
||||
|Psi angle.r
|
||||
]],
|
||||
{}
|
||||
)
|
||||
),
|
||||
})
|
||||
10
after/plugin/snips/typst.lua
Normal file
10
after/plugin/snips/typst.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
if not pcall(require, "luasnip") then
|
||||
return
|
||||
end
|
||||
|
||||
local ls = require("luasnip")
|
||||
local s = ls.snippet
|
||||
local i = ls.insert_node
|
||||
local fmt = require("luasnip.extras.fmt").fmt
|
||||
|
||||
ls.add_snippets("typst", {})
|
||||
Reference in New Issue
Block a user