Skip to content

Diogo-ss/licenser.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

⚖ Licenser

Create licenses for your projects and files

Command

Type Licenser to show all available licenses.

Ex: Licenser MIT

Setup

📦 Packer.nvim
use {
  "Diogo-ss/licenser.nvim",
  cmd = { "Licenser" },
  config = function()
    require "licenser"setup {
    -- add other options.
    }
  end,
}
💤 Lazy.nvim
{
  "Diogo-ss/licenser.nvim",
  cmd = { "Licenser" },
  opts = {
    -- add other options.
  },
  config = function(_, opts)
    require("licenser").setup(opts)
  end,
}

Custom

Add your own licenses by creating a license_name.txt file in ~/.config/nvim/lua/templates/.

If you want to change a standard license of the plugin, create a file with the same name as the license (ex: license_name.txt), so that your version will be prioritized.

Options

{
  placeholders = {
    name = "your name",
    author = "your name <your@mail.com>",
    year = function()
      return os.date "%Y"
    end,
    -- add other placeholders
  },
  user_licenses = vim.fn.stdpath "config" .. "/lua/templates",
}

Releases

No releases published

Languages