holy hell nvchad is a cancer

This commit is contained in:
Christoph J. Scherr 2024-07-04 10:14:45 +02:00
parent 0cacd59361
commit 34602cfadf
13 changed files with 4 additions and 36 deletions

1
.github/README.md vendored
View File

@ -86,7 +86,6 @@ A fuzzy file finder, picker, sorter, previewer and much more:
## Plugins list ## Plugins list
- Many beautiful themes, theme toggler by our [base46 plugin](https://github.com/NvChad/base46)
- Inbuilt terminal toggling & management with [Nvterm](https://github.com/NvChad/nvterm) - Inbuilt terminal toggling & management with [Nvterm](https://github.com/NvChad/nvterm)
- Lightweight & performant ui plugin with [NvChad UI](https://github.com/NvChad/ui) It provides statusline modules, tabufline ( tabs + buffer manager) , beautiful cheatsheets, NvChad updater, hide & unhide terminal buffers, theme switcher and much more! - Lightweight & performant ui plugin with [NvChad UI](https://github.com/NvChad/ui) It provides statusline modules, tabufline ( tabs + buffer manager) , beautiful cheatsheets, NvChad updater, hide & unhide terminal buffers, theme switcher and much more!
- File navigation with [nvim-tree.lua](https://github.com/kyazdani42/nvim-tree.lua) - File navigation with [nvim-tree.lua](https://github.com/kyazdani42/nvim-tree.lua)

View File

@ -93,7 +93,6 @@ A fuzzy file finder, picker, sorter, previewer and much more:
## Plugins list ## Plugins list
- Many beautiful themes, theme toggler by our [base46 plugin](https://github.com/NvChad/base46)
- Inbuilt terminal toggling & management with [Nvterm](https://github.com/NvChad/nvterm) - Inbuilt terminal toggling & management with [Nvterm](https://github.com/NvChad/nvterm)
- Lightweight & performant ui plugin with [NvChad UI](https://github.com/NvChad/ui) It provides statusline modules, tabufline ( tabs + buffer manager) , beautiful cheatsheets, NvChad updater, hide & unhide terminal buffers, theme switcher and much more! - Lightweight & performant ui plugin with [NvChad UI](https://github.com/NvChad/ui) It provides statusline modules, tabufline ( tabs + buffer manager) , beautiful cheatsheets, NvChad updater, hide & unhide terminal buffers, theme switcher and much more!
- File navigation with [nvim-tree.lua](https://github.com/kyazdani42/nvim-tree.lua) - File navigation with [nvim-tree.lua](https://github.com/kyazdani42/nvim-tree.lua)

View File

@ -16,6 +16,5 @@ if not vim.loop.fs_stat(lazypath) then
require("core.bootstrap").lazy(lazypath) require("core.bootstrap").lazy(lazypath)
end end
dofile(vim.g.base46_cache .. "defaults")
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
require "plugins" require "plugins"

View File

@ -12,16 +12,10 @@ local function shell_call(args)
end end
M.lazy = function(install_path) M.lazy = function(install_path)
------------- base46 ---------------
local lazy_path = fn.stdpath "data" .. "/lazy/base46"
M.echo " Compiling base46 theme to bytecode ..."
local base46_repo = "https://github.com/NvChad/base46"
shell_call { "git", "clone", "--depth", "1", "-b", "v2.0", base46_repo, lazy_path }
vim.opt.rtp:prepend(lazy_path) vim.opt.rtp:prepend(lazy_path)
require("base46").compile()
--------- lazy.nvim --------------- --------- lazy.nvim ---------------
M.echo " Installing lazy.nvim & plugins ..." M.echo " Installing lazy.nvim & plugins ..."
@ -31,9 +25,6 @@ M.lazy = function(install_path)
-- install plugins -- install plugins
require "plugins" require "plugins"
-- mason packages & show post_bootstrap screen
require "nvchad.post_install"()
end end
M.gen_chadrc_template = function() M.gen_chadrc_template = function()

View File

@ -5,7 +5,6 @@ M.options = {
} }
M.ui = { M.ui = {
------------------------------- base46 -------------------------------------
-- hl = highlights -- hl = highlights
hl_add = {}, hl_add = {},
hl_override = {}, hl_override = {},
@ -15,7 +14,6 @@ M.ui = {
transparency = false, transparency = false,
lsp_semantic_tokens = false, -- needs nvim v0.9, just adds highlight groups for lsp semantic tokens lsp_semantic_tokens = false, -- needs nvim v0.9, just adds highlight groups for lsp semantic tokens
-- https://github.com/NvChad/base46/tree/v2.0/lua/base46/extended_integrations
extended_integrations = {}, -- these aren't compiled by default, ex: "alpha", "notify" extended_integrations = {}, -- these aren't compiled by default, ex: "alpha", "notify"
-- cmp themeing -- cmp themeing

View File

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

View File

@ -5,8 +5,8 @@ local M = {}
local highlights = require "custom.highlights" local highlights = require "custom.highlights"
M.ui = { M.ui = {
theme = "oceanic-next", theme = "bearded-arc",
theme_toggle = { "oceanic-next", "ayu_light" }, theme_toggle = { "bearded-arc", "ayu_light" },
hl_override = highlights.override, hl_override = highlights.override,
hl_add = highlights.add, hl_add = highlights.add,
@ -59,7 +59,6 @@ local get_info = function()
" Toggle Theme", " Toggle Theme",
"<space>th", "<space>th",
function() function()
require("base46").toggle_theme()
end, end,
}, },
{ " Mappings", "<space>ch", "NvCheatsheet" }, { " Mappings", "<space>ch", "NvCheatsheet" },

View File

@ -489,13 +489,11 @@ M.ui = {
}, },
["<leader>th"] = { ["<leader>th"] = {
function() function()
require("base46").toggle_theme()
end, end,
"toggle theme", "toggle theme",
}, },
["<leader>te"] = { ["<leader>te"] = {
function() function()
require("base46").toggle_transparency()
end, end,
"toggle transparency", "toggle transparency",
}, },

View File

@ -940,7 +940,7 @@ local plugins = {
}, },
{ {
"NvChad/ui", "NvChad/ui",
enabled = true, enabled = false,
branch = "v2.0", branch = "v2.0",
lazy = false, lazy = false,
}, },
@ -949,7 +949,6 @@ local plugins = {
lazy = false, lazy = false,
dependencies = { dependencies = {
"nvim-tree/nvim-web-devicons", "nvim-tree/nvim-web-devicons",
"NvChad/ui", -- load after nvchad ui
}, },
config = function() config = function()
-- TODO: add lsp module for lualine -- TODO: add lsp module for lualine

View File

@ -1,6 +1,5 @@
local cmp = require "cmp" local cmp = require "cmp"
dofile(vim.g.base46_cache .. "cmp")
local cmp_ui = require("core.utils").load_config().ui.cmp local cmp_ui = require("core.utils").load_config().ui.cmp
local cmp_style = cmp_ui.style local cmp_style = cmp_ui.style

View File

@ -1,4 +1,3 @@
dofile(vim.g.base46_cache .. "lsp")
require "nvchad.lsp" require "nvchad.lsp"
local M = {} local M = {}

View File

@ -49,7 +49,7 @@ local options = {
}, },
}, },
extensions_list = { "themes", "terms" }, extensions_list = { },
} }
return options return options

View File

@ -20,11 +20,7 @@ local default_plugins = {
{ {
"nvim-tree/nvim-web-devicons", "nvim-tree/nvim-web-devicons",
opts = function()
return { override = require "nvchad.icons.devicons" }
end,
config = function(_, opts) config = function(_, opts)
dofile(vim.g.base46_cache .. "devicons")
require("nvim-web-devicons").setup(opts) require("nvim-web-devicons").setup(opts)
end, end,
}, },
@ -40,7 +36,6 @@ local default_plugins = {
end, end,
config = function(_, opts) config = function(_, opts)
require("core.utils").load_mappings "blankline" require("core.utils").load_mappings "blankline"
dofile(vim.g.base46_cache .. "blankline")
require("indent_blankline").setup(opts) require("indent_blankline").setup(opts)
end, end,
}, },
@ -56,7 +51,6 @@ local default_plugins = {
return require "plugins.configs.treesitter" return require "plugins.configs.treesitter"
end, end,
config = function(_, opts) config = function(_, opts)
dofile(vim.g.base46_cache .. "syntax")
require("nvim-treesitter.configs").setup(opts) require("nvim-treesitter.configs").setup(opts)
end, end,
}, },
@ -89,7 +83,6 @@ local default_plugins = {
return require("plugins.configs.others").gitsigns return require("plugins.configs.others").gitsigns
end, end,
config = function(_, opts) config = function(_, opts)
dofile(vim.g.base46_cache .. "git")
require("gitsigns").setup(opts) require("gitsigns").setup(opts)
end, end,
}, },
@ -102,7 +95,6 @@ local default_plugins = {
return require "plugins.configs.mason" return require "plugins.configs.mason"
end, end,
config = function(_, opts) config = function(_, opts)
dofile(vim.g.base46_cache .. "mason")
require("mason").setup(opts) require("mason").setup(opts)
-- custom nvchad cmd to install all mason binaries listed -- custom nvchad cmd to install all mason binaries listed
@ -203,7 +195,6 @@ local default_plugins = {
return require "plugins.configs.nvimtree" return require "plugins.configs.nvimtree"
end, end,
config = function(_, opts) config = function(_, opts)
dofile(vim.g.base46_cache .. "nvimtree")
require("nvim-tree").setup(opts) require("nvim-tree").setup(opts)
end, end,
}, },
@ -219,7 +210,6 @@ local default_plugins = {
return require "plugins.configs.telescope" return require "plugins.configs.telescope"
end, end,
config = function(_, opts) config = function(_, opts)
dofile(vim.g.base46_cache .. "telescope")
local telescope = require "telescope" local telescope = require "telescope"
telescope.setup(opts) telescope.setup(opts)
@ -239,7 +229,6 @@ local default_plugins = {
end, end,
cmd = "WhichKey", cmd = "WhichKey",
config = function(_, opts) config = function(_, opts)
dofile(vim.g.base46_cache .. "whichkey")
require("which-key").setup(opts) require("which-key").setup(opts)
end, end,
}, },