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 .."
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
vim.cmd "packadd packer.nvim"
require "plugins"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -30,7 +30,7 @@ M.blankline = function()
return
end
require("base46").load_highlight "blankline"
require "base46_cache.blankline"
local options = {
indentLine_enabled = 1,
@ -135,7 +135,7 @@ M.gitsigns = function()
return
end
require("base46").load_highlight "git"
require "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").load_highlight "devicons"
require "base46_cache.devicons"
local options = { override = require("nvchad_ui.icons").devicons }
options = require("core.utils").load_override(options, "kyazdani42/nvim-web-devicons")

View file

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

View file

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

View file

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

View file

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