mirror of
https://github.com/NvChad/NvChad.git
synced 2024-11-04 12:00:29 +00:00
add nvimtree_side global in nvimtree config func https://github.com/NvChad/ui/issues/68
also clean some lazy.nvim related variables
This commit is contained in:
parent
55de4b9c85
commit
c77c086365
@ -89,7 +89,7 @@ M.ui = {
|
||||
|
||||
M.plugins = "" -- path i.e "custom.plugins" -> custom/plugins.lua only and not custom/plugins/init.lua!!!!
|
||||
|
||||
M.lazy_nvim = {} -- config for lazy.nvim startup options
|
||||
M.lazy_nvim = require "plugins.configs.lazy_nvim" -- config for lazy.nvim startup options
|
||||
|
||||
-- these are default mappings, check core.mappings for table structure
|
||||
M.mappings = {}
|
||||
|
@ -73,6 +73,4 @@ local options = {
|
||||
},
|
||||
}
|
||||
|
||||
vim.g.nvimtree_side = options.view.side
|
||||
|
||||
return options
|
||||
|
@ -211,6 +211,7 @@ local default_plugins = {
|
||||
config = function(_, opts)
|
||||
dofile(vim.g.base46_cache .. "nvimtree")
|
||||
require("nvim-tree").setup(opts)
|
||||
vim.g.nvimtree_side = opts.view.side
|
||||
end,
|
||||
},
|
||||
|
||||
@ -256,7 +257,4 @@ if #config.plugins > 0 then
|
||||
table.insert(default_plugins, { import = config.plugins })
|
||||
end
|
||||
|
||||
-- lazy_nvim startup opts
|
||||
local lazy_config = vim.tbl_deep_extend("force", require "plugins.configs.lazy_nvim", config.lazy_nvim)
|
||||
|
||||
require("lazy").setup(default_plugins, lazy_config)
|
||||
require("lazy").setup(default_plugins, config.lazy_nvim)
|
||||
|
Loading…
Reference in New Issue
Block a user