No description
Find a file
2025-12-02 11:46:59 +01:00
lua fix opening neovim in nested project folder 2025-02-16 16:02:52 +01:00
.envrc feat: better filtering for ignore files, default ignore file is now in cwd 2025-01-24 12:36:28 +01:00
.gitignore Add nix vim plugin definition 2025-02-23 16:48:19 +01:00
.luarc.json feat: better filtering for ignore files, default ignore file is now in cwd 2025-01-24 12:36:28 +01:00
flake.lock Add nix vim plugin definition 2025-02-23 16:48:19 +01:00
flake.nix Add nix vim plugin definition 2025-02-23 16:48:19 +01:00
README.md Update README.md 2025-12-02 11:46:59 +01:00

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.