diff options
| author | dacctal <120422854+dacctal@users.noreply.github.com> | 2026-03-05 01:21:45 +0000 |
|---|---|---|
| committer | dacctal <120422854+dacctal@users.noreply.github.com> | 2026-03-05 01:21:45 +0000 |
| commit | 69a722cfd33076a4d63f1d49e52bed427453eabe (patch) | |
| tree | 56545e93c12a8232058a0ab2b258546418656e03 /.config/nvim/lua/plugins/oil.lua | |
initial commit
Diffstat (limited to '.config/nvim/lua/plugins/oil.lua')
| -rw-r--r-- | .config/nvim/lua/plugins/oil.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/oil.lua b/.config/nvim/lua/plugins/oil.lua new file mode 100644 index 0000000..5d153fd --- /dev/null +++ b/.config/nvim/lua/plugins/oil.lua @@ -0,0 +1,20 @@ +return { + "stevearc/oil.nvim", + dependencies = { "nvim-tree/nvim-web-devicons" }, + config = function() + require("oil").setup({ + default_file_explorer = true, + columns = {}, + keymaps = { + ["q"] = "actions.close", + }, + delete_to_trash = true, + view_options = { + show_hidden = true, + }, + skip_confirm_for_simple_edits = true, + }) + + vim.keymap.set("n", "<leader>fm", "<CMD>Oil<CR>", { desc = "Open parent directory" }) + end, +} |
