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" require "plugins"
-- mason packages & show post_boostrap screen -- mason packages & show post_boostrap screen
require "nvchad.post_bootstrap"() require "nvchad.post_install"()
end end
M.gen_chadrc_template = function() M.gen_chadrc_template = function()

View file

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

View file

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

View file

@ -15,7 +15,7 @@ local formatting_style = {
fields = field_arrangement[cmp_style] or { "abbr", "kind", "menu" }, fields = field_arrangement[cmp_style] or { "abbr", "kind", "menu" },
format = function(_, item) 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 "" local icon = (cmp_ui.icons and icons[item.kind]) or ""
if cmp_style == "atom" or cmp_style == "atom_colored" then if cmp_style == "atom" or cmp_style == "atom_colored" then

View file

@ -1,5 +1,5 @@
dofile(vim.g.base46_cache .. "lsp") dofile(vim.g.base46_cache .. "lsp")
require "nvchad_ui.lsp" require "nvchad.lsp"
local M = {} local M = {}
local utils = require "core.utils" local utils = require "core.utils"
@ -13,7 +13,7 @@ M.on_attach = function(client, bufnr)
utils.load_mappings("lspconfig", { buffer = bufnr }) utils.load_mappings("lspconfig", { buffer = bufnr })
if client.server_capabilities.signatureHelpProvider then if client.server_capabilities.signatureHelpProvider then
require("nvchad_ui.signature").setup(client) require("nvchad.signature").setup(client)
end end
if not utils.load_config().ui.lsp_semantic_tokens and client.supports_method "textDocument/semanticTokens" then 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", branch = "v2.0",
lazy = false, lazy = false,
config = function() config = function()
require "nvchad_ui" require "nvchad"
end, end,
}, },
@ -53,7 +53,7 @@ local default_plugins = {
{ {
"nvim-tree/nvim-web-devicons", "nvim-tree/nvim-web-devicons",
opts = function() opts = function()
return { override = require"nvchad_ui.icons.devicons" } return { override = require "nvchad.icons.devicons" }
end, end,
config = function(_, opts) config = function(_, opts)
dofile(vim.g.base46_cache .. "devicons") dofile(vim.g.base46_cache .. "devicons")