No description
| lua | ||
| .envrc | ||
| .gitignore | ||
| .luarc.json | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
ignorer.nvim
Very simple Neovim Plugin, to append files to the .gitignore file.
This Plugin uses the oil.nvim Plugin for file-management and only works inside oil-Buffers.
This is my very first Neovim Plugin and is specifically for my personal needs.
Installation
To install with lazy.nvim:
{
"nihklas/ignorer.nvim",
url = "https://git.nkoll.de/nk/ignorer.nvim",
opts = {},
dependencies = { "stevearc/oil.nvim", "nvim-telescope/telescope.nvim" },
}
Usage
Inside your Oil-Buffer, press <leader>gi to append this file to the .gitignore file.
If no .gitignore on the current path can be found, a top-level file will be created. If there are multiple .gitignore-files
a telescope picker will open up to choose the ignore file. The path appended to the ignore file will be relative from the ignore file.