.gitignore rules to wildignore; No idea if it still works...
|
|
||
|---|---|---|
| rplugin/python3 | Add command for adding regexes to NERDTreeIgnore | |
| .gitignore | Initial commit | |
| LICENSE | Initial commit | |
| README.adoc | Add docs for GitIgnAddNERDTree | |
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
wildignoresetting. Internallyset wildignore+=PATTERNis 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
wildignoresetting. GitIgnAddNERDTree FILE...-
Call it with one or more paths to files containing ignore patterns. Internally, the
fnmatchpatterns are converted to regular expressions using the Python standard library and applied tog: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.