~reggie/licenses.nvim

Insert and write license headers and/or files.
085f9c0a — Reggie 7 days ago
fix(update_copyright): wrong method call
47d199c9 — Reggie 7 days ago
fix(config): config functions called twice if they returned a `false`
28aace85 — Reggie 7 days ago
chore: update licenses

clone

read-only
https://git.sr.ht/~reggie/licenses.nvim
read/write
git@git.sr.ht:~reggie/licenses.nvim

You can also use your local clone with git send-email.

#licenses.nvim

A plugin for easily writing license files and inserting license headers.

#Setup

First install the plugin with your package manager of choice. Don't know what that is? Check out Paq.

Inside your init.lua file run the following function:

require('licenses').setup({
    copyright_holder = 'your name',
    email = 'example@email.com',
    license = 'your license of choice'
})

For more configuration options and in depth explanation run :help licenses-nvim.Config.

#Usage

  • LicenseInsert - insert a license on top of your current buffer
  • LicenseFetch - fetch a license from spdx.org
  • LicenseUpdate - update the date in your copyright notice
  • LicenseWrite - write license text to a file

#Documentation

The documentation is in form of a vimdoc file, it contains much more information than this README, check it out by doing :help licenses-nvim.

#Issues