Skip to content

Commit

Permalink
Change oil config
Browse files Browse the repository at this point in the history
  • Loading branch information
knmac committed Dec 17, 2024
1 parent 551e118 commit 7cdeb07
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions lua/plugins/utils/oil.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,18 @@ return {
event = "VeryLazy",
dependencies = { "nvim-tree/nvim-web-devicons" },
keys = {
{ "-", function() require("oil").toggle_float() end, desc = "Oil: toggle floating window" },
{ "_", function() require("oil").open() end, desc = "Oil: open in the current buffer" },
{ "-", function() require("oil").open_float() end, desc = "Oil: open floating window" },
{ "_", function() require("oil").open() end, desc = "Oil: open in the current buffer" },
},
opts = {
float = {
padding = 2,
},
view_options = {
show_hidden = true,
},
keymaps = {
["q"] = { "actions.close", mode = "n" },
}
},
opts = {},
}

0 comments on commit 7cdeb07

Please sign in to comment.