Migrate vim snippets to neovim (LuaSnip)

This commit is contained in:
2025-10-19 20:48:08 +02:00
parent 128ae8ed1e
commit 05bc2ec59e
12 changed files with 997 additions and 1159 deletions

View File

@@ -0,0 +1,24 @@
local ls = require("luasnip")
local s = ls.snippet
local t = ls.text_node
local i = ls.insert_node
return {
s("reqtrace", t({ "(#%require racket/trace)" })),
s("strln", t({ "(string-length " }), i(1), t({ ")" })),
s("impb", t({ "(import (rnrs base (6))", " (rnrs io simple" }), i(0), t({ ")" })),
s("def", {
t("(define "),
i(1),
t(" "),
i(2),
t(")"),
}),
s("defp", {
t("(define ("),
i(1),
t(" "),
i(2),
t("))"),
}),
}