Changed snippets
This commit is contained in:
parent
8d1ef972bc
commit
950ddeb557
12 changed files with 2739 additions and 23 deletions
15
lua/custom/plugins/Luasnip/all.lua
Normal file
15
lua/custom/plugins/Luasnip/all.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
-- Place this in ${HOME}/.config/nvim/LuaSnip/all.lua
|
||||
return {
|
||||
-- A snippet that expands the trigger "hi" into the string "Hello, world!".
|
||||
require("luasnip").snippet(
|
||||
{ trig = "hi" },
|
||||
{ t("Hello, world!") }
|
||||
),
|
||||
|
||||
-- To return multiple snippets, use one `return` statement per snippet file
|
||||
-- and return a table of Lua snippets.
|
||||
require("luasnip").snippet(
|
||||
{ trig = "foo" },
|
||||
{ t("Another snippet.") }
|
||||
),
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue