change highlight loading function name

This commit is contained in:
siduck 2022-11-17 19:26:43 +05:30
parent 08453985ca
commit f77d052d70
11 changed files with 14 additions and 18 deletions

View File

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

View File

@ -5,7 +5,6 @@ local config = require("core.utils").load_config()
g.nvchad_theme = config.ui.theme g.nvchad_theme = config.ui.theme
g.toggle_theme_icon = "" g.toggle_theme_icon = ""
g.transparency = config.ui.transparency g.transparency = config.ui.transparency
g.theme_switcher_loaded = false
opt.laststatus = 3 -- global statusline opt.laststatus = 3 -- global statusline
opt.showmode = false opt.showmode = false

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -29,11 +29,7 @@ local plugins = {
["NvChad/base46"] = { ["NvChad/base46"] = {
branch = "dev", branch = "dev",
config = function() config = function()
local ok, base46 = pcall(require, "base46") require "base46_cache.defaults"
if ok then
base46.load_theme()
end
end, end,
}, },