update some module paths

This commit is contained in:
siduck 2023-08-09 20:22:46 +05:30
parent 487ca44566
commit 8ea74bc23b
6 changed files with 15 additions and 15 deletions

View file

@ -32,7 +32,7 @@ M.lazy = function(install_path)
require "plugins"
-- mason packages & show post_boostrap screen
require "nvchad.post_bootstrap"()
require "nvchad.post_install"()
end
M.gen_chadrc_template = function()

View file

@ -93,13 +93,13 @@ autocmd("BufWritePost", {
vim.g.transparency = config.ui.transparency
-- statusline
require("plenary.reload").reload_module("nvchad_ui.statusline." .. config.ui.statusline.theme)
vim.opt.statusline = "%!v:lua.require('nvchad_ui.statusline." .. config.ui.statusline.theme .. "').run()"
require("plenary.reload").reload_module("nvchad.statusline." .. config.ui.statusline.theme)
vim.opt.statusline = "%!v:lua.require('nvchad.statusline." .. config.ui.statusline.theme .. "').run()"
-- tabufline
if config.ui.tabufline.enabled then
require("plenary.reload").reload_module "nvchad_ui.tabufline.modules"
vim.opt.tabline = "%!v:lua.require('nvchad_ui.tabufline.modules').run()"
require("plenary.reload").reload_module "nvchad.tabufline.modules"
vim.opt.tabline = "%!v:lua.require('nvchad.tabufline.modules').run()"
end
require("base46").load_all_highlights()
@ -111,5 +111,5 @@ autocmd("BufWritePost", {
local new_cmd = vim.api.nvim_create_user_command
new_cmd("NvChadUpdate", function()
require "nvchad.update"()
require "nvchad.updater"()
end, {})

View file

@ -79,14 +79,14 @@ M.tabufline = {
-- cycle through buffers
["<tab>"] = {
function()
require("nvchad_ui.tabufline").tabuflineNext()
require("nvchad.tabufline").tabuflineNext()
end,
"Goto next buffer",
},
["<S-tab>"] = {
function()
require("nvchad_ui.tabufline").tabuflinePrev()
require("nvchad.tabufline").tabuflinePrev()
end,
"Goto prev buffer",
},
@ -94,7 +94,7 @@ M.tabufline = {
-- close buffer + hide terminal buffer
["<leader>x"] = {
function()
require("nvchad_ui.tabufline").close_buffer()
require("nvchad.tabufline").close_buffer()
end,
"Close buffer",
},
@ -172,7 +172,7 @@ M.lspconfig = {
["<leader>ra"] = {
function()
require("nvchad_ui.renamer").open()
require("nvchad.renamer").open()
end,
"LSP rename",
},

View file

@ -15,7 +15,7 @@ local formatting_style = {
fields = field_arrangement[cmp_style] or { "abbr", "kind", "menu" },
format = function(_, item)
local icons = require "nvchad_ui.icons.lspkind"
local icons = require "nvchad.icons.lspkind"
local icon = (cmp_ui.icons and icons[item.kind]) or ""
if cmp_style == "atom" or cmp_style == "atom_colored" then

View file

@ -1,5 +1,5 @@
dofile(vim.g.base46_cache .. "lsp")
require "nvchad_ui.lsp"
require "nvchad.lsp"
local M = {}
local utils = require "core.utils"
@ -13,7 +13,7 @@ M.on_attach = function(client, bufnr)
utils.load_mappings("lspconfig", { buffer = bufnr })
if client.server_capabilities.signatureHelpProvider then
require("nvchad_ui.signature").setup(client)
require("nvchad.signature").setup(client)
end
if not utils.load_config().ui.lsp_semantic_tokens and client.supports_method "textDocument/semanticTokens" then

View file

@ -20,7 +20,7 @@ local default_plugins = {
branch = "v2.0",
lazy = false,
config = function()
require "nvchad_ui"
require "nvchad"
end,
},
@ -53,7 +53,7 @@ local default_plugins = {
{
"nvim-tree/nvim-web-devicons",
opts = function()
return { override = require"nvchad_ui.icons.devicons" }
return { override = require "nvchad.icons.devicons" }
end,
config = function(_, opts)
dofile(vim.g.base46_cache .. "devicons")