Simple plugin made to slightly enhance the capabilities of Oil.nvim and to practice making my own Neovim plugins. For whatever reason, I can never get my brain to wrap around the fact that I need to use my default mapping for closing a window, 'q', and so instead I created this to close the floating oil window with just a press of the 'q' button. This is configurable.
require('lazy').setup({
{
"spacewulf/oil-addon.nvim",
opts = {},
dependencies = {
"stevearc/oil.nvim",
},
},
})The setup method must be called in order for the plugin to work. This can be done via the opts table or using the dedicated setup function.
require('oil-addon').setup({
keys = {
close_floating = 'q'
}
})