oil: float and q to quit

This commit is contained in:
Zynh Ludwig 2024-08-09 03:46:06 -07:00
parent 132e069133
commit 431197d583

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" },
}, },