templates

This commit is contained in:
veypi 2024-10-15 19:31:12 +08:00
parent 104145392c
commit 7ff7f47104
8 changed files with 61 additions and 0 deletions

View File

@ -1,2 +1,6 @@
-- bootstrap lazy.nvim, LazyVim and your plugins
vim.g.user = "veypi"
vim.g.email = "i@veypi.com"
vim.g.templates_directory = '~/.config/nvim/templates'
require("config.lazy")

View File

@ -44,5 +44,6 @@
"tokyonight.nvim": { "branch": "main", "commit": "2c85fad417170d4572ead7bf9fdd706057bd73d7" },
"trouble.nvim": { "branch": "main", "commit": "254145ffd528b98eb20be894338e2d5c93fa02c2" },
"ts-comments.nvim": { "branch": "main", "commit": "98d7d4dec0af1312d38e288f800bbf6ff562b6ab" },
"vim-template": { "branch": "master", "commit": "0bf607233719a0ed6e14bf0197ba8950bf8833fc" },
"which-key.nvim": { "branch": "main", "commit": "8badb359f7ab8711e2575ef75dfe6fbbd87e4821" }
}

View File

@ -1,4 +1,9 @@
return {
{
'aperezdc/vim-template',
config = function()
end,
},
{
"norcalli/nvim-colorizer.lua",
config = function()

10
templates/=template=.go Normal file
View File

@ -0,0 +1,10 @@
//
// %FFILE%
// Copyright (C) %YEAR% %USER% <%MAIL%>
// %FDATE%
// Distributed under terms of the %LICENSE% license.
//
package main
%HERE%

8
templates/=template=.rs Normal file
View File

@ -0,0 +1,8 @@
//
// %FFILE%
// Copyright (C) %YEAR% %USER% <%MAIL%>
// %FDATE%
// Distributed under terms of the %LICENSE% license.
//
%HERE%

8
templates/=template=.ts Normal file
View File

@ -0,0 +1,8 @@
/*
* %FFILE%
* Copyright (C) %YEAR% %USER% <%MAIL%>
* %FDATE%
* Distributed under terms of the %LICENSE% license.
*/
%HERE%

16
templates/=template=.vue Normal file
View File

@ -0,0 +1,16 @@
<!--
* %FFILE%
* Copyright (C) %YEAR% %USER% <%MAIL%>
* %FDATE%
* Distributed under terms of the %LICENSE% license.
-->
<template>
<div>%HERE%</div>
</template>
<script lang="ts" setup>
</script>
<style scoped>
</style>

View File

@ -0,0 +1,9 @@
#
# %FFILE%
# Copyright (C) %YEAR% %USER% <%MAIL%>
# %FDATE%
# Distributed under terms of the %LICENSE% license.
#
all:
%HERE%@echo "%FFILE% needs your attention"