mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
nvim: add vue snippets
This commit is contained in:
parent
05439d0859
commit
ddb00f75b4
1 changed files with 17 additions and 0 deletions
17
nvim/snippets/vue.lua
Normal file
17
nvim/snippets/vue.lua
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
local ls = require("luasnip")
|
||||||
|
local s = ls.snippet
|
||||||
|
local t = ls.text_node
|
||||||
|
local i = ls.insert_node
|
||||||
|
|
||||||
|
return {
|
||||||
|
s("setup", {
|
||||||
|
t({"<script setup lang=\"ts\">", ""}),
|
||||||
|
i(0),
|
||||||
|
t({"", "</script>"}),
|
||||||
|
}),
|
||||||
|
s("css", {
|
||||||
|
t({"<style lang=\"css\">", ""}),
|
||||||
|
i(0),
|
||||||
|
t({"", "</style>"}),
|
||||||
|
}),
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue