1
0
Fork
You've already forked neovim-gitignore
0
A neovim remote plugin to add .gitignore rules to wildignore; No idea if it still works...
Python 100%
Find a file
2017年03月07日 08:53:40 +01:00
rplugin/python3 Add command for adding regexes to NERDTreeIgnore 2017年03月07日 00:40:44 +01:00
.gitignore Initial commit 2017年03月06日 21:48:44 +01:00
LICENSE Initial commit 2017年03月06日 21:48:44 +01:00
README.adoc Add docs for GitIgnAddNERDTree 2017年03月07日 08:53:40 +01:00

neovim-gitignore

neovim-gitignore is a neovim remote plugin written in Python3 that allow adding .gitignore files to the vim wildignore setting. Please note, that not all patterns, supported in .gitignore files are supported, such as negation with !. Only basic support is provided, but it should handle most cases and make your live easier with lots of generated files.

Install

For vim-plug, add to your ~/.config/nvim/init.vim:

Plug 'rumpelsepp/neovim-gitignore', { 'do': ':UpdateRemotePlugins' }

Finally, call :PlugInstall.

Usage

Currently there are three commands:

GitIgnAdd FILE...​

Call it with one or more paths to files containing ignore patterns. The supported patterns are added to the wildignore setting. Internally set wildignore+=PATTERN is used, so no patterns are overwritten.

GitIgnDel FILE...​

Call it with one or more paths to files containing ignore patterns. The supported patterns are removed from the wildignore setting.

GitIgnAddNERDTree FILE...​

Call it with one or more paths to files containing ignore patterns. Internally, the fnmatch patterns are converted to regular expressions using the Python standard library and applied to g:NERDTreeIgnore.

You can check if it worked with set wildignore?. The .gitignore patterns should be visible in the output of the command.

TODO: Create an example with autocommand to add rules automatically.