This telescope.nvim extension allows you to view common software licenses and paste them into a buffer.
Currently supports the following licenses:
- MIT License/Expat License
- gpl-1.0: GNU General Public License (GPL)
- gpl-2.0: GNU General Public License (GPL)
- gpl-3.0: GNU General Public License (GPL)
- lgpl-2.0: GNU Lesser General Public License (LGPL)
- lgpl-2.1: GNU Lesser General Public License (LGPL
- lgpl-3.0: GNU Lesser General Public License (LGPL
- agpl-3.0: GNU Affero General Public License (AGPL)
- fdl-1.1: GNU Free Documentation License (FDL)
- fdl-1.2: GNU Free Documentation License (FDL)
- fdl-1.3: GNU Free Documentation License (FDL)
- Neovim (v0.6.0)
- telescope.nvim (required)
- Only tested on MacOS 11.6.1
You can install the extension by using your plugin manager of choice or by
cloning this repository somewhere on your filepath, and then adding the
following somewhere after telescope in your configuration file (init.vim
or
init.lua
).
Using Paq
require "paq" {
"nvim-lua/plenary.nvim";
"nvim-telescope/telescope.nvim";
"chip/telescope-software-licenses.nvim";
}
require("telescope").load_extension("software-licenses");
Using packer.nvim
use "nvim-lua/plenary.nvim"
use "nvim-telescope/telescope.nvim"
use "chip/telescope-software-licenses.nvim"
require("telescope").load_extension("software-licenses")
" Prompts user for Github user/repo
" Prompts for file argument, but uses README.md as default
:Telescope software-licenses find
" Replace <Leader>sl with whatever you prefer
nnoremap <Leader>sl :Telescope software-licenses find<CR>
$ git clone git@github.com:chip/telescope-software-licenses.nvim.git
$ cd telescope-software-licenses.nvim/lua/telescope/_extensions
See plugin/dev.vim for details.