Skip to content

M1nts02/nvim-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nvim-template

A neovim plugin for template

Install

-- 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",
    },
  },
})

Configuration

-- default config
{
  templ_dir = vim.fn.stdpath("config") .. "/" .. "template"),
  templ_register_file = vim.fn.stdpath("config") .. "/" .. "template.json"),
}

Example for register file

{
  "launch(lldb)": {
    "target": ".vscode/launch.json",
    "template": "launch_lldb.json"
  },
  "stylua": {
    "target": "stylua.toml",
    "template": "stylua.toml"
  },
}

Usage

:Templ <template>
:Templ <template> <target>
:TemplAdd <template>
:TemplDel <template1> <template2> ...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages