oil: float and q to quit

main
Zynh Ludwig 2024-08-09 03:46:06 -07:00
parent 132e069133
commit 431197d583
1 changed files with 6 additions and 2 deletions

View File

@ -1,9 +1,13 @@
return { return {
{ {
"stevearc/oil.nvim", "stevearc/oil.nvim",
opts = {}, opts = {
keymaps = {
["q"] = "actions.close",
},
},
cmd = { "Oil" }, cmd = { "Oil" },
keys = { { "<leader>o", "<CMD>Oil<CR>", desc = "Oil", remap = true } }, keys = { { "<leader>o", "<CMD>Oil --float<CR>", desc = "Oil", remap = true } },
-- Optional dependencies -- Optional dependencies
dependencies = { "nvim-tree/nvim-web-devicons" }, dependencies = { "nvim-tree/nvim-web-devicons" },
}, },