From 3426473eb82961ea48563c6b061744a63e9a9087 Mon Sep 17 00:00:00 2001 From: Mora Unie Youer Date: Thu, 8 May 2025 13:21:04 +0300 Subject: feat: add `oil.nvim` --- flake.nix | 1 + lua/config/plugins/extra.lua | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/flake.nix b/flake.nix index e54c461..f79a4e6 100644 --- a/flake.nix +++ b/flake.nix @@ -251,6 +251,7 @@ ]; extra = [ + oil-nvim yanky-nvim which-key-nvim ]; diff --git a/lua/config/plugins/extra.lua b/lua/config/plugins/extra.lua index 03748fb..6360aa7 100644 --- a/lua/config/plugins/extra.lua +++ b/lua/config/plugins/extra.lua @@ -102,4 +102,15 @@ return { }) end, }, + { + "oil.nvim", + -- NOTE: lazy loading is not recommended + -- event = "DeferredUIEnter", + after = function(_) + require("oil").setup() + end, + keys = { + { "-", "Oil", { desc = "Open parent directory" } }, + }, + }, } -- cgit v1.2.3-70-g09d2