From b17c4d9e86bceba7ddfcb9ee3f0b4f7db3989b3b Mon Sep 17 00:00:00 2001 From: siduck Date: Mon, 4 Mar 2024 11:56:40 +0530 Subject: [PATCH] mv nvconfig to lua/ --- lua/nvchad/autocmds.lua | 2 +- lua/nvchad/configs/mason.lua | 2 +- lua/nvchad/plugins/ui.lua | 2 +- lua/{nvchad => }/nvconfig.lua | 14 ++++---------- 4 files changed, 7 insertions(+), 13 deletions(-) rename lua/{nvchad => }/nvconfig.lua (90%) diff --git a/lua/nvchad/autocmds.lua b/lua/nvchad/autocmds.lua index 42c964a..0e6260a 100644 --- a/lua/nvchad/autocmds.lua +++ b/lua/nvchad/autocmds.lua @@ -12,7 +12,7 @@ autocmd("FileType", { autocmd("BufWritePost", { pattern = vim.tbl_map(function(path) return vim.fs.normalize(vim.loop.fs_realpath(path)) - end, vim.fn.glob(vim.fn.stdpath "config" .. "/lua/custom/**/*.lua", true, true, true)), + end, vim.fn.glob(vim.fn.stdpath "config" .. "/lua/**/*.lua", true, true, true)), group = vim.api.nvim_create_augroup("ReloadNvChad", {}), callback = function(opts) diff --git a/lua/nvchad/configs/mason.lua b/lua/nvchad/configs/mason.lua index 3692a15..a87f593 100644 --- a/lua/nvchad/configs/mason.lua +++ b/lua/nvchad/configs/mason.lua @@ -1,5 +1,5 @@ local options = { - ensure_installed = { "lua-language-server" }, -- not an option from mason.nvim + ensure_installed = { "lua-language-server", 'stylua' }, -- not an option from mason.nvim PATH = "skip", diff --git a/lua/nvchad/plugins/ui.lua b/lua/nvchad/plugins/ui.lua index 34a6a97..29a6081 100644 --- a/lua/nvchad/plugins/ui.lua +++ b/lua/nvchad/plugins/ui.lua @@ -10,7 +10,7 @@ return { { "NvChad/ui", - branch = "v3.0", + branch = "starter", lazy = false, config = function() require "nvchad" diff --git a/lua/nvchad/nvconfig.lua b/lua/nvconfig.lua similarity index 90% rename from lua/nvchad/nvconfig.lua rename to lua/nvconfig.lua index 5066ed2..dc4e72c 100644 --- a/lua/nvchad/nvconfig.lua +++ b/lua/nvconfig.lua @@ -25,15 +25,15 @@ M.ui = { -- default/round/block/arrow separators work only for default statusline theme -- round and block will work for minimal theme only separator_style = "default", - overriden_modules = nil, + order=nil, }, -- lazyload it when there are 1+ buffers tabufline = { - show_numbers = false, enabled = true, lazyload = true, - overriden_modules = nil, + order= {'treeOffset', 'buffers' , 'tabs', 'btns'}, + modules = nil, }, -- nvdash (dashboard) @@ -86,8 +86,6 @@ M.ui = { }, } -M.plugins = "" -- path i.e "custom.plugins", so make custom/plugins.lua file - M.base46 = { integrations = { "blankline", @@ -110,10 +108,6 @@ M.base46 = { }, } -local chadrc_exists, chadrc = pcall(require, "custom.chadrc") - -if chadrc_exists then - M = vim.tbl_deep_extend("force", M, chadrc) -end +M = vim.tbl_deep_extend("force", M, require('chadrc')) return M