From 494e0233c84a45e0b83f3463fd26fe2a9d79b87d Mon Sep 17 00:00:00 2001 From: topper3418 <67675579+topper3418@users.noreply.github.com> Date: Sun, 14 Jul 2024 03:05:19 -0500 Subject: [PATCH] holy shit I think I got it working on windows --- init.lua | 1 - lua/custom/plugins/oil.lua | 12 ++++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 7e9dd5b1..ae09e405 100644 --- a/init.lua +++ b/init.lua @@ -356,6 +356,5 @@ vim.opt.smartindent = true -- this is transparent background vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' }) vim.api.nvim_set_hl(0, 'NormalFloat', { bg = 'none' }) - -- The line beneath this is called `modeline`. See `:help modeline` -- vim: ts=2 sts=2 sw=2 et diff --git a/lua/custom/plugins/oil.lua b/lua/custom/plugins/oil.lua index 39089d8f..5d31e209 100644 --- a/lua/custom/plugins/oil.lua +++ b/lua/custom/plugins/oil.lua @@ -24,8 +24,16 @@ return { ['g.'] = 'actions.toggle_hidden', ['g\\'] = 'actions.toggle_trash', }, + keys = { + { + '-', + 'Oil', + desc = 'Open parent directory', + mode = { 'n' } + } + }, use_default_keymaps = false, -- Optional dependencies - dependencies = { 'echasnovski/mini.icons' }, - -- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if prefer nvim-web-devicons + -- dependencies = { 'echasnovski/mini.icons' }, + dependencies = { 'nvim-tree/nvim-web-devicons' }, -- use if prefer nvim-web-devicons }