|
@ -3,7 +3,6 @@ local required = {} |
|
|
required.settings = { |
|
|
required.settings = { |
|
|
mapper = {}, |
|
|
mapper = {}, |
|
|
} |
|
|
} |
|
|
local is_plugin_disabled = require("doom.utils").is_plugin_disabled |
|
|
|
|
|
|
|
|
|
|
|
required.uses = { |
|
|
required.uses = { |
|
|
["packer.nvim"] = { |
|
|
["packer.nvim"] = { |
|
@ -27,7 +26,6 @@ required.uses = { |
|
|
}, |
|
|
}, |
|
|
["nvim-mapper"] = { |
|
|
["nvim-mapper"] = { |
|
|
"lazytanuki/nvim-mapper", |
|
|
"lazytanuki/nvim-mapper", |
|
|
before = is_plugin_disabled("telescope") or "telescope.nvim", |
|
|
|
|
|
}, |
|
|
}, |
|
|
['nvim-web-devicons'] = { |
|
|
['nvim-web-devicons'] = { |
|
|
'kyazdani42/nvim-web-devicons', |
|
|
'kyazdani42/nvim-web-devicons', |
|
@ -43,7 +41,7 @@ end |
|
|
|
|
|
|
|
|
required.binds = function () |
|
|
required.binds = function () |
|
|
local utils = require("doom.utils") |
|
|
local utils = require("doom.utils") |
|
|
local is_plugin_disabled = utils.is_plugin_disabled |
|
|
local is_module_enabled = utils.is_module_enabled |
|
|
|
|
|
|
|
|
local binds = { |
|
|
local binds = { |
|
|
{ "ZZ", require("doom.core.functions").quit_doom, name = "Fast exit" }, |
|
|
{ "ZZ", require("doom.core.functions").quit_doom, name = "Fast exit" }, |
|
@ -124,7 +122,7 @@ required.binds = function () |
|
|
table.insert(binds, { esc_seq, "<ESC>", mode = "i" }) |
|
|
table.insert(binds, { esc_seq, "<ESC>", mode = "i" }) |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
if is_plugin_disabled("explorer") then |
|
|
if is_module_enabled("explorer") then |
|
|
table.insert(binds, { "<F3>", ":Lexplore%s<CR>", name = "Toggle explorer" }) |
|
|
table.insert(binds, { "<F3>", ":Lexplore%s<CR>", name = "Toggle explorer" }) |
|
|
table.insert(binds, { |
|
|
table.insert(binds, { |
|
|
"<leader>", |
|
|
"<leader>", |
|
@ -314,7 +312,7 @@ required.binds = function () |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
required.autocmds = function () |
|
|
required.autocmds = function () |
|
|
local is_plugin_disabled = require("doom.utils").is_plugin_disabled |
|
|
local is_module_enabled = require("doom.utils").is_module_enabled |
|
|
|
|
|
|
|
|
local autocmds = {} |
|
|
local autocmds = {} |
|
|
|
|
|
|
|
@ -340,7 +338,7 @@ required.autocmds = function () |
|
|
}) |
|
|
}) |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
if is_plugin_disabled("explorer") then |
|
|
if is_module_enabled("explorer") then |
|
|
table.insert(autocmds, { |
|
|
table.insert(autocmds, { |
|
|
"FileType", |
|
|
"FileType", |
|
|
"netrw", |
|
|
"netrw", |
|
|