From 8ea74bc23bcaab9910a827ed69fd9635f87b063e Mon Sep 17 00:00:00 2001 From: siduck Date: Wed, 9 Aug 2023 20:22:46 +0530 Subject: [PATCH] update some module paths --- lua/core/bootstrap.lua | 2 +- lua/core/init.lua | 10 +++++----- lua/core/mappings.lua | 8 ++++---- lua/plugins/configs/cmp.lua | 2 +- lua/plugins/configs/lspconfig.lua | 4 ++-- lua/plugins/init.lua | 4 ++-- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/lua/core/bootstrap.lua b/lua/core/bootstrap.lua index 43653a0..bd34d6c 100644 --- a/lua/core/bootstrap.lua +++ b/lua/core/bootstrap.lua @@ -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() diff --git a/lua/core/init.lua b/lua/core/init.lua index 8342fb2..19804e1 100644 --- a/lua/core/init.lua +++ b/lua/core/init.lua @@ -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, {}) diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index acc2948..2aaf7ab 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -79,14 +79,14 @@ M.tabufline = { -- cycle through buffers [""] = { function() - require("nvchad_ui.tabufline").tabuflineNext() + require("nvchad.tabufline").tabuflineNext() end, "Goto next buffer", }, [""] = { 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 ["x"] = { function() - require("nvchad_ui.tabufline").close_buffer() + require("nvchad.tabufline").close_buffer() end, "Close buffer", }, @@ -172,7 +172,7 @@ M.lspconfig = { ["ra"] = { function() - require("nvchad_ui.renamer").open() + require("nvchad.renamer").open() end, "LSP rename", }, diff --git a/lua/plugins/configs/cmp.lua b/lua/plugins/configs/cmp.lua index 14450ab..19868b6 100644 --- a/lua/plugins/configs/cmp.lua +++ b/lua/plugins/configs/cmp.lua @@ -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 diff --git a/lua/plugins/configs/lspconfig.lua b/lua/plugins/configs/lspconfig.lua index facb4cb..fe7cbbc 100644 --- a/lua/plugins/configs/lspconfig.lua +++ b/lua/plugins/configs/lspconfig.lua @@ -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 diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index c8efe5d..292fd3e 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -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")