diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2024-08-16 16:28:22 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2024-08-16 16:28:22 -0400 |
| commit | e184d7cee358abc277a51f040cacf236f1eaceab (patch) | |
| tree | bfc7ced143a04d6d79f955ca7c37b962a01773f3 /nvim/lua/plugins/oil.lua | |
| parent | d3230ab29e56f97966f05cf2232a2e92d6a1302f (diff) | |
removed lspzero, updated keymaps
Diffstat (limited to 'nvim/lua/plugins/oil.lua')
| -rw-r--r-- | nvim/lua/plugins/oil.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nvim/lua/plugins/oil.lua b/nvim/lua/plugins/oil.lua index 40a485e..20ce22f 100644 --- a/nvim/lua/plugins/oil.lua +++ b/nvim/lua/plugins/oil.lua @@ -5,7 +5,13 @@ return { keys = { { "<leader>ef", function() - vim.cmd('topleft vsplit +Oil') + local filetype = vim.o.ft + if filetype == "oil" then + vim.cmd('q') + else + vim.cmd('topleft vsplit +Oil') + end + -- TODO: check for other open oil instances end, desc = "Open Oil file explorer in a far left split, similar to :Lexplore" } }, |
