Skip to content

Commit

Permalink
update some module paths
Browse files Browse the repository at this point in the history
  • Loading branch information
siduck committed Aug 9, 2023
1 parent 487ca44 commit 8ea74bc
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion lua/core/bootstrap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
10 changes: 5 additions & 5 deletions lua/core/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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, {})
8 changes: 4 additions & 4 deletions lua/core/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,22 +79,22 @@ 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",
},

-- close buffer + hide terminal buffer
["<leader>x"] = {
function()
require("nvchad_ui.tabufline").close_buffer()
require("nvchad.tabufline").close_buffer()
end,
"Close buffer",
},
Expand Down Expand Up @@ -172,7 +172,7 @@ M.lspconfig = {

["<leader>ra"] = {
function()
require("nvchad_ui.renamer").open()
require("nvchad.renamer").open()
end,
"LSP rename",
},
Expand Down
2 changes: 1 addition & 1 deletion lua/plugins/configs/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lua/plugins/configs/lspconfig.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dofile(vim.g.base46_cache .. "lsp")
require "nvchad_ui.lsp"
require "nvchad.lsp"

local M = {}
local utils = require "core.utils"
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lua/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ local default_plugins = {
branch = "v2.0",
lazy = false,
config = function()
require "nvchad_ui"
require "nvchad"
end,
},

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 8ea74bc

Please sign in to comment.