From 5fea981e2ee9948cf0793c39cc478f0cbc56914c Mon Sep 17 00:00:00 2001 From: Haelnorr Date: Thu, 23 Jan 2025 12:37:36 +1100 Subject: [PATCH] updated oil config --- README.md | 2 +- lua/haelnorr/lazy/oil.lua | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 825f886..5e1c547 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ Live preview of markdown files in browser, with synced scrolling Provides Nerd font icons for other plugins to use --- -#### [Oil](https://github.com/nvim-tree/nvim-web-devicons) +#### [Oil](https://github.com/stevearc/oil.nvim) Edit/view your filesystem like a normal NeoVim buffer --- diff --git a/lua/haelnorr/lazy/oil.lua b/lua/haelnorr/lazy/oil.lua index 8743892..e8f3c07 100644 --- a/lua/haelnorr/lazy/oil.lua +++ b/lua/haelnorr/lazy/oil.lua @@ -6,7 +6,16 @@ return { -- Optional dependencies dependencies = { "nvim-tree/nvim-web-devicons" }, config = function() - require("oil").setup() + require("oil").setup({ + watch_for_changes = true, + view_options = { + show_hidden = true, + is_always_hidden = function(name, bufnr) + local m = name:match("^%.%.") + return m ~= nil + end, + }, + }) vim.keymap.set("n", "-", "Oil", { desc = "Open parent directory" }) end, }