avoid loading cached highlights in plugin opts file
This commit is contained in:
parent
7b3aefee53
commit
a2690a4b72
|
@ -1,13 +1,6 @@
|
|||
local M = {}
|
||||
|
||||
M.lazy = function(install_path)
|
||||
print "Downloading lazy-lock.json file..."
|
||||
|
||||
local config_branch = require("core.utils").load_config().options.nvChad.update_branch
|
||||
local lazy_local_url = "https://raw.githubusercontent.com/NvChad/extensions/lazy-lock/" .. config_branch .. ".json"
|
||||
|
||||
vim.fn.system { "curl", "-o", "lazy-lock.json", lazy_local_url }
|
||||
|
||||
print "Bootstrapping lazy.nvim .."
|
||||
|
||||
vim.fn.system {
|
||||
|
@ -30,7 +23,8 @@ M.lazy = function(install_path)
|
|||
|
||||
-- install binaries from mason.nvim & tsparsers on LazySync
|
||||
vim.schedule(function()
|
||||
vim.cmd "bw | silent! MasonInstallAll" -- close lazy window
|
||||
vim.cmd "silent! MasonInstallAll"
|
||||
-- print success message
|
||||
end, 0)
|
||||
end
|
||||
|
||||
|
@ -41,9 +35,18 @@ M.gen_chadrc_template = function()
|
|||
|
||||
if input == "y" then
|
||||
-- clone example_config repo
|
||||
local example_config_url = "https://github.com/NvChad/example_config"
|
||||
print "cloning chadrc starter template repo...."
|
||||
vim.fn.system { "git", "clone", "--depth", "1", "-b", "v2.0", example_config_url, vim.fn.stdpath "config" .. "/lua/custom" }
|
||||
|
||||
vim.fn.system {
|
||||
"git",
|
||||
"clone",
|
||||
"--depth",
|
||||
"1",
|
||||
"-b",
|
||||
"v2.0",
|
||||
"https://github.com/NvChad/example_config",
|
||||
vim.fn.stdpath "config" .. "/lua/custom",
|
||||
}
|
||||
vim.cmd "redraw|echo ''"
|
||||
|
||||
-- delete .git from that repo
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
dofile(vim.g.base46_cache .. "mason")
|
||||
|
||||
local options = {
|
||||
ensure_installed = { "lua-language-server" }, -- not an option from mason.nvim
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
dofile(vim.g.base46_cache .. "nvimtree")
|
||||
|
||||
local options = {
|
||||
filters = {
|
||||
dotfiles = false,
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
dofile(vim.g.base46_cache .. "telescope")
|
||||
|
||||
local options = {
|
||||
defaults = {
|
||||
vimgrep_arguments = {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
dofile(vim.g.base46_cache .. "syntax")
|
||||
|
||||
local options = {
|
||||
ensure_installed = { "lua" },
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
dofile(vim.g.base46_cache .. "whichkey")
|
||||
|
||||
local options = {
|
||||
|
||||
icons = {
|
||||
|
|
|
@ -71,6 +71,7 @@ local default_plugins = {
|
|||
build = ":TSUpdate",
|
||||
opts = require "plugins.configs.treesitter",
|
||||
config = function(_, opts)
|
||||
dofile(vim.g.base46_cache .. "syntax")
|
||||
require("nvim-treesitter.configs").setup(opts)
|
||||
end,
|
||||
},
|
||||
|
@ -105,8 +106,11 @@ local default_plugins = {
|
|||
{
|
||||
"williamboman/mason.nvim",
|
||||
cmd = { "Mason", "MasonInstall", "MasonInstallAll", "MasonUninstall", "MasonUninstallAll", "MasonLog" },
|
||||
opts = require "plugins.configs.mason",
|
||||
config = function(_, opts)
|
||||
dofile(vim.g.base46_cache .. "mason")
|
||||
require("mason").setup(opts)
|
||||
|
||||
-- custom nvchad cmd to install all mason binaries listed
|
||||
vim.api.nvim_create_user_command("MasonInstallAll", function()
|
||||
vim.cmd("MasonInstall " .. table.concat(opts.ensure_installed, " "))
|
||||
|
@ -186,6 +190,7 @@ local default_plugins = {
|
|||
init = require("core.utils").load_mappings "nvimtree",
|
||||
opts = require "plugins.configs.nvimtree",
|
||||
config = function(_, opts)
|
||||
dofile(vim.g.base46_cache .. "nvimtree")
|
||||
require("nvim-tree").setup(opts)
|
||||
end,
|
||||
},
|
||||
|
@ -200,6 +205,7 @@ local default_plugins = {
|
|||
end,
|
||||
|
||||
config = function(_, opts)
|
||||
dofile(vim.g.base46_cache .. "telescope")
|
||||
local telescope = require "telescope"
|
||||
telescope.setup(opts)
|
||||
|
||||
|
@ -218,6 +224,7 @@ local default_plugins = {
|
|||
init = require("core.utils").load_mappings "whichkey",
|
||||
opts = require "plugins.configs.whichkey",
|
||||
config = function(_, opts)
|
||||
dofile(vim.g.base46_cache .. "whichkey")
|
||||
require("which-key").setup(opts)
|
||||
end,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue