breaking change : re-implement custom mappings | simplify it | add whichkey
fixes #1057 , #1047
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
local plugin_settings = nvchad.load_config().plugins
|
||||
local present, packer = pcall(require, plugin_settings.options.packer.init_file)
|
||||
local present, packer = pcall(require, "plugins.packerInit")
|
||||
|
||||
if not present then
|
||||
return false
|
||||
@@ -48,11 +47,6 @@ local plugins = {
|
||||
|
||||
["akinsho/bufferline.nvim"] = {
|
||||
after = "nvim-web-devicons",
|
||||
|
||||
setup = function()
|
||||
require("core.mappings").bufferline()
|
||||
end,
|
||||
|
||||
config = function()
|
||||
require "plugins.configs.bufferline"
|
||||
end,
|
||||
@@ -194,11 +188,6 @@ local plugins = {
|
||||
["numToStr/Comment.nvim"] = {
|
||||
module = "Comment",
|
||||
keys = { "gc", "gb" },
|
||||
|
||||
setup = function()
|
||||
require("core.mappings").comment()
|
||||
end,
|
||||
|
||||
config = function()
|
||||
require("plugins.configs.others").comment()
|
||||
end,
|
||||
@@ -207,10 +196,6 @@ local plugins = {
|
||||
-- file managing , picker etc
|
||||
["kyazdani42/nvim-tree.lua"] = {
|
||||
cmd = { "NvimTreeToggle", "NvimTreeFocus" },
|
||||
setup = function()
|
||||
require("core.mappings").nvimtree()
|
||||
end,
|
||||
|
||||
config = function()
|
||||
require "plugins.configs.nvimtree"
|
||||
end,
|
||||
@@ -218,18 +203,24 @@ local plugins = {
|
||||
|
||||
["nvim-telescope/telescope.nvim"] = {
|
||||
cmd = "Telescope",
|
||||
|
||||
setup = function()
|
||||
require("core.mappings").telescope()
|
||||
end,
|
||||
|
||||
config = function()
|
||||
require "plugins.configs.telescope"
|
||||
end,
|
||||
},
|
||||
|
||||
["folke/which-key.nvim"] = {
|
||||
opt = true,
|
||||
setup = function()
|
||||
nvchad.packer_lazy_load "which-key.nvim"
|
||||
end,
|
||||
config = function()
|
||||
require "plugins.configs.whichkey"
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
plugins = nvchad.remove_default_plugins(plugins)
|
||||
|
||||
-- merge user plugin table & default plugin table
|
||||
plugins = nvchad.plugin_list(plugins)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user