From 6123eac08dc3bd4d2a8d3825532636240dd98ee3 Mon Sep 17 00:00:00 2001 From: Harivansh Rathi Date: Wed, 18 Feb 2026 10:53:24 -0500 Subject: [PATCH] git oil --- lazy-lock.json | 1 + lua/plugins/oil.lua | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lazy-lock.json b/lazy-lock.json index 8d48e74..1dcb56a 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -19,6 +19,7 @@ "nvim-treesitter-textobjects": { "branch": "main", "commit": "a0e182ae21fda68c59d1f36c9ed45600aef50311" }, "nvim-ufo": { "branch": "main", "commit": "ab3eb124062422d276fae49e0dd63b3ad1062cfc" }, "nvim-web-devicons": { "branch": "master", "commit": "746ffbb17975ebd6c40142362eee1b0249969c5c" }, + "oil-git.nvim": { "branch": "main", "commit": "c99db7b1dd8dd500c3ec530dc07000dfbeb6e080" }, "oil.nvim": { "branch": "master", "commit": "f55b25e493a7df76371cfadd0ded5004cb9cd48a" }, "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, "promise-async": { "branch": "main", "commit": "119e8961014c9bfaf1487bf3c2a393d254f337e2" }, diff --git a/lua/plugins/oil.lua b/lua/plugins/oil.lua index 8ad08ae..97bc5b4 100644 --- a/lua/plugins/oil.lua +++ b/lua/plugins/oil.lua @@ -1,12 +1,17 @@ return { "stevearc/oil.nvim", - dependencies = { "nvim-tree/nvim-web-devicons" }, + dependencies = { "nvim-tree/nvim-web-devicons", "malewicz1337/oil-git.nvim" }, event = 'VeryLazy', keys = { { "-", "Oil", desc = "Open parent directory" }, }, config = function(_, opts) require("oil").setup(opts) + require("oil-git").setup({ + show_ignored_files = false, + show_ignored_directories = false, + debounce_ms = 300, + }) vim.api.nvim_create_autocmd("BufEnter", { pattern = "oil://*", callback = function()