clean up
This commit is contained in:
parent
af123eee4d
commit
34bdca17d2
@ -25,24 +25,9 @@ M.lazy = function(install_path)
|
||||
|
||||
-- install plugins
|
||||
require "plugins"
|
||||
vim.api.nvim_buf_delete(0, { force = true }) -- close lazy window
|
||||
|
||||
---------- mason packages -------------
|
||||
vim.schedule(function()
|
||||
vim.cmd "MasonInstallAll"
|
||||
local packages = table.concat(vim.g.mason_binaries_list, " ")
|
||||
|
||||
require("mason-registry"):on("package:install:success", function(pkg)
|
||||
packages = string.gsub(packages, pkg.name:gsub("%-", "%%-"), "") -- rm package name
|
||||
|
||||
if packages:match "%S" == nil then
|
||||
vim.schedule(function()
|
||||
vim.api.nvim_buf_delete(0, { force = true })
|
||||
M.echo "Now please read the docs at nvchad.com!! "
|
||||
end)
|
||||
end
|
||||
end)
|
||||
end)
|
||||
-- mason packages & show post_boostrap screen
|
||||
require "nvchad.post_bootstrap"()
|
||||
end
|
||||
|
||||
M.gen_chadrc_template = function()
|
||||
@ -60,7 +45,7 @@ M.gen_chadrc_template = function()
|
||||
vim.fn.mkdir(path, "p")
|
||||
|
||||
local file = io.open(path .. "chadrc.lua", "w")
|
||||
file:write "local M = {}\n M.ui = {theme = 'onedark'}\n return M"
|
||||
file:write "---@type ChadrcConfig \n local M = {}\n M.ui = {theme = 'onedark'}\n return M"
|
||||
file:close()
|
||||
end
|
||||
end
|
||||
|
@ -1,12 +1,7 @@
|
||||
-- Chadrc overrides this file
|
||||
|
||||
local M = {}
|
||||
|
||||
M.options = {
|
||||
nvChad = {
|
||||
update_url = "https://github.com/NvChad/NvChad",
|
||||
update_branch = "v2.0",
|
||||
},
|
||||
nvchad_branch = "v2.0",
|
||||
}
|
||||
|
||||
M.ui = {
|
||||
@ -29,9 +24,7 @@ M.ui = {
|
||||
selected_item_bg = "colored", -- colored / simple
|
||||
},
|
||||
|
||||
telescope = {
|
||||
style = "borderless", -- borderless / bordered
|
||||
},
|
||||
telescope = { style = "borderless" }, -- borderless / bordered
|
||||
|
||||
------------------------------- nvchad_ui modules -----------------------------
|
||||
statusline = {
|
||||
@ -76,9 +69,7 @@ M.ui = {
|
||||
},
|
||||
},
|
||||
|
||||
cheatsheet = {
|
||||
theme = "grid", -- simple/grid
|
||||
},
|
||||
cheatsheet = { theme = "grid" }, -- simple/grid
|
||||
|
||||
lsp = {
|
||||
-- show function signatures i.e args as you type
|
||||
@ -89,11 +80,10 @@ M.ui = {
|
||||
},
|
||||
}
|
||||
|
||||
M.plugins = "" -- path i.e "custom.plugins" -> custom/plugins.lua only and not custom/plugins/init.lua!!!!
|
||||
M.plugins = "" -- path i.e "custom.plugins", so make custom/plugins.lua file
|
||||
|
||||
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 = {}
|
||||
|
||||
return M
|
||||
|
Loading…
Reference in New Issue
Block a user