We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5444fae commit c65b956Copy full SHA for c65b956
1 file changed
lua/custom/plugins/oil.lua
@@ -6,4 +6,12 @@ return {
6
dependencies = { { 'nvim-mini/mini.icons', opts = {} } },
7
-- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons
8
lazy = false,
9
+ config = function(_, opts)
10
+ require('oil').setup(opts)
11
+ -- add keymap to save file and trigger oil afterwards
12
+ vim.keymap.set('n', '<A-o>', function()
13
+ vim.cmd 'w'
14
+ vim.cmd 'Oil'
15
+ end, {})
16
+ end,
17
}
0 commit comments