load base46_cache in instead of minified modules

pull/1709/head
siduck 2 years ago
parent c16c22e87b
commit d27029d1b1

@ -14,7 +14,7 @@ if fn.empty(fn.glob(install_path)) > 0 then
print "Cloning packer .."
fn.system { "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path }
os.execute("mkdir -p " .. vim.fn.stdpath "data" .. "/site/pack/base46_cache/start/compiled_themes/lua/base46_cache/")
os.execute("mkdir -p " .. vim.g.base46_cache)
-- install plugins + compile their configs
vim.cmd "packadd packer.nvim"

@ -3,6 +3,7 @@ local g = vim.g
local config = require("core.utils").load_config()
g.nvchad_theme = config.ui.theme
g.base46_cache = vim.fn.stdpath "cache" .. "/nvchad/base46/"
g.toggle_theme_icon = ""
g.transparency = config.ui.transparency

@ -4,7 +4,7 @@ if not present then
return
end
require "base46_cache.cmp"
loadfile(vim.g.base46_cache .. "cmp")()
vim.o.completeopt = "menu,menuone,noselect"

@ -4,7 +4,7 @@ if not present then
return
end
require "base46_cache.lsp"
loadfile(vim.g.base46_cache .. "lsp")()
require "nvchad_ui.lsp"
local M = {}

@ -8,7 +8,7 @@ vim.api.nvim_create_augroup("_mason", { clear = true })
vim.api.nvim_create_autocmd("Filetype", {
pattern = "mason",
callback = function()
require "base46_cache.mason"
loadfile(vim.g.base46_cache .. "mason")()
end,
group = "_mason",
})

@ -4,7 +4,7 @@ if not present then
return
end
require "base46_cache.nvimtree"
loadfile(vim.g.base46_cache .. "nvimtree")()
local options = {
filters = {

@ -30,7 +30,7 @@ M.blankline = function()
return
end
require "base46_cache.blankline"
loadfile(vim.g.base46_cache .. "blankline")()
local options = {
indentLine_enabled = 1,
@ -135,7 +135,7 @@ M.gitsigns = function()
return
end
require "base46_cache.git"
loadfile(vim.g.base46_cache .. "git")()
local options = {
signs = {
@ -159,7 +159,7 @@ M.devicons = function()
local present, devicons = pcall(require, "nvim-web-devicons")
if present then
require "base46_cache.devicons"
loadfile(vim.g.base46_cache .. "devicons")()
local options = { override = require("nvchad_ui.icons").devicons }
options = require("core.utils").load_override(options, "kyazdani42/nvim-web-devicons")

@ -4,7 +4,7 @@ if not present then
return
end
require "base46_cache.telescope"
loadfile(vim.g.base46_cache .. "telescope")()
local options = {
defaults = {

@ -4,7 +4,7 @@ if not present then
return
end
require "base46_cache.treesitter"
loadfile(vim.g.base46_cache .. "treesitter")()
local options = {
ensure_installed = {

@ -4,7 +4,7 @@ if not present then
return
end
require "base46_cache.whichkey"
loadfile(vim.g.base46_cache .. "whichkey")()
local options = {

@ -29,7 +29,7 @@ local plugins = {
["NvChad/base46"] = {
branch = "dev",
config = function()
pcall(require, "base46_cache.defaults")
loadfile(vim.g.base46_cache .. "defaults")()
end,
},

Loading…
Cancel
Save