A simple neovim plugin to generate .gitignore
using
gitignore.io templates.
- nvim-lua/plenary.nvim is required.
Using vim-plug
Plug 'nvim-lua/plenary.nvim'
Plug 'kalvinpearce/gitignore-gen.nvim'
Using dein
call dein#add('nvim-lua/plenary.nvim')
call dein#add('kalvinpearce/gitignore-gen.nvim')
Using packer.nvim
use {
'kalvinpearce/gitignore-gen.nvim',
requires = { {'nvim-lua/plenary.nvim'} }
}
Running :GitignoreGenerate
will bring up a series of dialogs to guide you
through generating a .gitignore
# vim
nnoremap <leader>gG <cmd>GitignoreGenerate<cr>
-- lua
vim.keymap.set('n', '<leader>gG', require('gitignore-gen').generate)
See :help gitignore-gen.nvim
This plugin is largely inspired by and based on piotrpalarz/vscode-gitignore-generator. Piotrpalarz wrote an amazing plugin that I used to use all the time in vscode. I missed it so much I decided to learn how to make a plugin for neovim just to recreate its functionality.