From a9a4ac3704a618f107e3675fe3a42e20a8ee427e Mon Sep 17 00:00:00 2001 From: rootiest Date: Thu, 11 Jul 2024 03:39:00 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B3=20Explorer=20Quick=20Access?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add 'E' keybind in Normal for opening file explorer --- lua/config/keybinds.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lua/config/keybinds.lua b/lua/config/keybinds.lua index 2573e0e..049ac4f 100644 --- a/lua/config/keybinds.lua +++ b/lua/config/keybinds.lua @@ -2,6 +2,14 @@ -- -------------------------------- KEYBINDS ----------------------------------- -- ----------------------------------------------------------------------------- +-- --------------------------------- Keymaps ----------------------------------- +vim.keymap.set( -- Explorer + "n", + "E", + "lua require('neo-tree.command').execute({ toggle = true, dir = vim.uv.cwd() })" +) + +-- -------------------------------- Commands ----------------------------------- -- Make :Q close all of the buffers vim.api.nvim_create_user_command("Q", function() vim.cmd.bdelete() @@ -92,4 +100,4 @@ vim.keymap.set("ia", "vegitarien", "vegetarian") vim.keymap.set("ia", "vegatarian", "vegetarian") vim.keymap.set("ia", "vegeterian", "vegetarian") vim.keymap.set("ia", "vegatarien", "vegetarian") -vim.keymap.set("ia", "vegeterien", "vegetarian") \ No newline at end of file +vim.keymap.set("ia", "vegeterien", "vegetarian")