diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-06 14:31:03 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-06 14:31:03 +0200 |
commit | e8ff563a53306ef3f6344ccd197bf7d737cf851c (patch) | |
tree | e868cb7b3f7c9d7a828ab8f1b4528f0c01e46f3a /after/plugin | |
parent | 2dea91e91c1680cbd03a5e60239823f56b90513c (diff) |
checkpoint
Diffstat (limited to 'after/plugin')
-rw-r--r-- | after/plugin/luasnip.lua | 8 |
1 files changed, 8 insertions, 0 deletions
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", "<cmd>source ~/.config/nvim/after/plugin/luasnip.lua<cr>") 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</$1>]]), +}) |