From 7d6a6ae13c143e305e9a7396b555e176555b7740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Sun, 21 Apr 2024 21:09:04 +0200 Subject: [PATCH] Quit vim on backspace in oil --- .config/nvim/lua/plugins/oil.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/nvim/lua/plugins/oil.lua b/.config/nvim/lua/plugins/oil.lua index 8d8e4ef..d89ea95 100644 --- a/.config/nvim/lua/plugins/oil.lua +++ b/.config/nvim/lua/plugins/oil.lua @@ -19,7 +19,7 @@ return { ["v"] = "actions.select_vsplit", ["s"] = "actions.select_split", ["p"] = "actions.preview", - [""] = "actions.close", + [""] = function() vim.cmd("q!") end, ["r"] = "actions.refresh", ["-"] = function() require("oil").open(); save_dir() end, ["_"] = "actions.open_cwd",