Skip to content

chip/telescope-software-licenses.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telescope-software-licenses.nvim

telescope-software-licenses.nvim DEMO

This telescope.nvim extension allows you to view common software licenses and paste them into a buffer.

Currently supports the following licenses:

Requirements

  • Neovim (v0.6.0)
  • telescope.nvim (required)
  • Only tested on MacOS 11.6.1

Install

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");
use "nvim-lua/plenary.nvim"
use "nvim-telescope/telescope.nvim"
use "chip/telescope-software-licenses.nvim"
require("telescope").load_extension("software-licenses")

Setup

Commands

" Prompts user for Github user/repo
" Prompts for file argument, but uses README.md as default
:Telescope software-licenses find

Bind to Keys:

" Replace <Leader>sl with whatever you prefer
nnoremap <Leader>sl :Telescope software-licenses find<CR>

Development

$ 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.