fix(nvimtree): avoid hard-coded mapping (#3492)

This commit is contained in:
Nitai Charan 2022-11-18 03:24:58 -05:00 committed by GitHub
parent 40c8d5aea6
commit b42e8c3c73
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View file

@ -152,7 +152,6 @@ function M.setup()
return return
end end
lvim.builtin.which_key.mappings["e"] = { "<cmd>NvimTreeToggle<CR>", "Explorer" }
lvim.builtin.nvimtree._setup_called = true lvim.builtin.nvimtree._setup_called = true
-- Implicitly update nvim-tree when project module is active -- Implicitly update nvim-tree when project module is active

View file

@ -86,6 +86,7 @@ M.config = function()
["c"] = { "<cmd>BufferKill<CR>", "Close Buffer" }, ["c"] = { "<cmd>BufferKill<CR>", "Close Buffer" },
["f"] = { require("lvim.core.telescope.custom-finders").find_project_files, "Find File" }, ["f"] = { require("lvim.core.telescope.custom-finders").find_project_files, "Find File" },
["h"] = { "<cmd>nohlsearch<CR>", "No Highlight" }, ["h"] = { "<cmd>nohlsearch<CR>", "No Highlight" },
["e"] = { "<cmd>NvimTreeToggle<CR>", "Explorer" },
b = { b = {
name = "Buffers", name = "Buffers",
j = { "<cmd>BufferLinePick<cr>", "Jump" }, j = { "<cmd>BufferLinePick<cr>", "Jump" },