A neovim plugin for template
-- lazy.nvim
require("lazy").setup({
{
"M1nts02/nvim-template",
cmd = {"Templ", "TemplAdd", "TemplDel"},
opts = {
templ_dir = vim.fn.stdpath("config") .. "/" .. "template",
templ_register_file = vim.fn.stdpath("config") .. "/" .. "template.json",
},
},
})
-- default config
{
templ_dir = vim.fn.stdpath("config") .. "/" .. "template"),
templ_register_file = vim.fn.stdpath("config") .. "/" .. "template.json"),
}
{
"launch(lldb)": {
"target": ".vscode/launch.json",
"template": "launch_lldb.json"
},
"stylua": {
"target": "stylua.toml",
"template": "stylua.toml"
},
}
:Templ <template>
:Templ <template> <target>
:TemplAdd <template>
:TemplDel <template1> <template2> ...