show hidden files by default in oil.nvim

This commit is contained in:
Baipyrus 2024-08-01 10:50:36 +02:00
parent 9fb7d5de4b
commit 37ccad6701

View File

@ -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', '<leader>fe', require('oil').open, { desc = '[F]ile [E]xplorer' })
end,
}