mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 14:12:41 +00:00
feat: Working on snippets for nvim
This commit is contained in:
10
nvim/m-housh/lua/user/snippets/init.lua
Executable file → Normal file
10
nvim/m-housh/lua/user/snippets/init.lua
Executable file → Normal file
@@ -1,4 +1,5 @@
|
||||
local ls = require('luasnip')
|
||||
-- Setup snippets here.
|
||||
local ls = require("luasnip")
|
||||
local s = ls.snippet
|
||||
local sn = ls.snippet_node
|
||||
local ms = ls.multi_snippet
|
||||
@@ -7,3 +8,10 @@ local f = ls.function_node
|
||||
local c = ls.choice_node
|
||||
local t = ls.text_node
|
||||
|
||||
ls.add_snippets("lua", {
|
||||
s("hello", {
|
||||
t('print("hello '),
|
||||
i(1),
|
||||
t(' world")'),
|
||||
}),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user