From 37ccad6701f8efbc587f18ac4c1bd193e951b5cf Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Thu, 1 Aug 2024 10:50:36 +0200 Subject: [PATCH] show hidden files by default in oil.nvim --- lua/custom/plugins/oil.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lua/custom/plugins/oil.lua b/lua/custom/plugins/oil.lua index ed6ae3a..5da3382 100644 --- a/lua/custom/plugins/oil.lua +++ b/lua/custom/plugins/oil.lua @@ -10,11 +10,14 @@ vim.api.nvim_create_autocmd('BufLeave', { return { 'stevearc/oil.nvim', - opts = {}, -- Optional dependencies dependencies = { 'nvim-tree/nvim-web-devicons' }, config = function() - require('oil').setup() + require('oil').setup({ + view_options = { + show_hidden = true + } + }) vim.keymap.set('n', 'fe', require('oil').open, { desc = '[F]ile [E]xplorer' }) end, }