From e8ff563a53306ef3f6344ccd197bf7d737cf851c Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 6 Oct 2024 14:31:03 +0200 Subject: checkpoint --- after/plugin/luasnip.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'after/plugin') diff --git a/after/plugin/luasnip.lua b/after/plugin/luasnip.lua index 7959de9..9ff00de 100644 --- a/after/plugin/luasnip.lua +++ b/after/plugin/luasnip.lua @@ -23,6 +23,8 @@ map("n", " s", "source ~/.config/nvim/after/plugin/luasnip.lua") ls.config.set_config({ history = true, + -- Will update multiple nodes at the same time when in insert mode + update_events = { "TextChanged", "TextChangedI" }, }) ls.add_snippets("go", { @@ -39,3 +41,9 @@ ls.add_snippets("sh", { ls.add_snippets("c", { ls.parser.parse_snippet("main", "int main(void) {\n\t$0\n\treturn 0;\n}"), }) +ls.add_snippets("typescript", { + ls.parser.parse_snippet("cl", "console.log($0);"), +}) +ls.add_snippets("html", { + ls.parser.parse_snippet("t", [[<$1>$0]]), +}) -- cgit v1.2.3