diff options
| author | Nitai Charan <[email protected]> | 2022-11-18 03:24:58 -0500 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-18 09:24:58 +0100 | 
| commit | b42e8c3c73751837237166c1e726443d96628d78 (patch) | |
| tree | af98f6e14328576c91303395b6ebf6748f725138 | |
| parent | 40c8d5aea6645f5a47b9b0c2af7a9926047ea5fa (diff) | |
fix(nvimtree): avoid hard-coded mapping (#3492)
| -rw-r--r-- | lua/lvim/core/nvimtree.lua | 1 | ||||
| -rw-r--r-- | lua/lvim/core/which-key.lua | 1 | 
2 files changed, 1 insertions, 1 deletions
| diff --git a/lua/lvim/core/nvimtree.lua b/lua/lvim/core/nvimtree.lua index 3738de80..a62a7d71 100644 --- a/lua/lvim/core/nvimtree.lua +++ b/lua/lvim/core/nvimtree.lua @@ -152,7 +152,6 @@ function M.setup()      return    end -  lvim.builtin.which_key.mappings["e"] = { "<cmd>NvimTreeToggle<CR>", "Explorer" }    lvim.builtin.nvimtree._setup_called = true    -- Implicitly update nvim-tree when project module is active diff --git a/lua/lvim/core/which-key.lua b/lua/lvim/core/which-key.lua index 60ced36d..875edbf5 100644 --- a/lua/lvim/core/which-key.lua +++ b/lua/lvim/core/which-key.lua @@ -86,6 +86,7 @@ M.config = function()        ["c"] = { "<cmd>BufferKill<CR>", "Close Buffer" },        ["f"] = { require("lvim.core.telescope.custom-finders").find_project_files, "Find File" },        ["h"] = { "<cmd>nohlsearch<CR>", "No Highlight" }, +      ["e"] = { "<cmd>NvimTreeToggle<CR>", "Explorer" },        b = {          name = "Buffers",          j = { "<cmd>BufferLinePick<cr>", "Jump" }, | 
