From 9155cf33ed7533122666e193dad3f76e8a2b890f Mon Sep 17 00:00:00 2001 From: "Simen A. W. Olsen" Date: Fri, 27 Dec 2024 15:14:23 +0100 Subject: add my nvim config --- lua/simenandre/plugins/oil.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 lua/simenandre/plugins/oil.lua (limited to 'lua/simenandre/plugins/oil.lua') diff --git a/lua/simenandre/plugins/oil.lua b/lua/simenandre/plugins/oil.lua new file mode 100644 index 0000000..37e8f94 --- /dev/null +++ b/lua/simenandre/plugins/oil.lua @@ -0,0 +1,28 @@ +return { + "stevearc/oil.nvim", + opts = {}, + -- Optional dependencies + dependencies = { "nvim-tree/nvim-web-devicons" }, + config = function() + require("oil").setup({ + columns = { "icon" }, + keymaps = { + [""] = false, + [""] = "actions.select_split", + }, + watch_for_changes = true, + view_options = { + show_hidden = true, + }, + }) + + -- Open parent directory in current window + vim.keymap.set("n", "-", "Oil", { desc = "Open parent directory" }) + vim.keymap.set( + "n", + "dd", + "Oil /Users/cobraz/ghq/github.com/simenandre/notes/", + { desc = "Open parent directory" } + ) + end, +} -- cgit v1.3.1