Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
fix(explorer): delete duplicate keybinding (#383)
Browse files Browse the repository at this point in the history
explorer/init.lua already defines the proper one that calls nvim-tree.
`Lexplore` is a netrw command (disabled by default),
and `Lexplore%s` looks like a typo.

Fixes #374

Signed-off-by: Edwin Török <edwin@etorok.net>

Signed-off-by: Edwin Török <edwin@etorok.net>
  • Loading branch information
edwintorok authored Aug 12, 2022
1 parent d95c4ce commit e8e7df7
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions lua/doom/modules/core/doom/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ required.packages = {
required.configs = {}

required.binds = function()
local utils = require("doom.utils")
local is_module_enabled = utils.is_module_enabled

local binds = {
{ "ZZ", require("doom.core.functions").quit_doom, name = "Fast exit" },
Expand Down Expand Up @@ -122,23 +120,6 @@ required.binds = function()
table.insert(binds, { esc_seq, "<ESC>", mode = "i" })
end

if is_module_enabled("features", "explorer") then
table.insert(binds, { "<F3>", ":Lexplore%s<CR>", name = "Toggle explorer" })
table.insert(binds, {
"<leader>",
name = "+prefix",
{
{
"o",
name = "+open/close",
{
{ "e", ":Lexplore%s<CR>", name = "Explorer" },
},
},
},
})
end

local split_modes = {
vertical = "vert ",
horizontal = "",
Expand Down

0 comments on commit e8e7df7

Please sign in to comment.