mv nvconfig to lua/
This commit is contained in:
parent
e307a4eacf
commit
b17c4d9e86
|
@ -12,7 +12,7 @@ autocmd("FileType", {
|
||||||
autocmd("BufWritePost", {
|
autocmd("BufWritePost", {
|
||||||
pattern = vim.tbl_map(function(path)
|
pattern = vim.tbl_map(function(path)
|
||||||
return vim.fs.normalize(vim.loop.fs_realpath(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", {}),
|
group = vim.api.nvim_create_augroup("ReloadNvChad", {}),
|
||||||
|
|
||||||
callback = function(opts)
|
callback = function(opts)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
local options = {
|
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",
|
PATH = "skip",
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ return {
|
||||||
|
|
||||||
{
|
{
|
||||||
"NvChad/ui",
|
"NvChad/ui",
|
||||||
branch = "v3.0",
|
branch = "starter",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = function()
|
config = function()
|
||||||
require "nvchad"
|
require "nvchad"
|
||||||
|
|
|
@ -25,15 +25,15 @@ M.ui = {
|
||||||
-- default/round/block/arrow separators work only for default statusline theme
|
-- default/round/block/arrow separators work only for default statusline theme
|
||||||
-- round and block will work for minimal theme only
|
-- round and block will work for minimal theme only
|
||||||
separator_style = "default",
|
separator_style = "default",
|
||||||
overriden_modules = nil,
|
order=nil,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- lazyload it when there are 1+ buffers
|
-- lazyload it when there are 1+ buffers
|
||||||
tabufline = {
|
tabufline = {
|
||||||
show_numbers = false,
|
|
||||||
enabled = true,
|
enabled = true,
|
||||||
lazyload = true,
|
lazyload = true,
|
||||||
overriden_modules = nil,
|
order= {'treeOffset', 'buffers' , 'tabs', 'btns'},
|
||||||
|
modules = nil,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- nvdash (dashboard)
|
-- nvdash (dashboard)
|
||||||
|
@ -86,8 +86,6 @@ M.ui = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
M.plugins = "" -- path i.e "custom.plugins", so make custom/plugins.lua file
|
|
||||||
|
|
||||||
M.base46 = {
|
M.base46 = {
|
||||||
integrations = {
|
integrations = {
|
||||||
"blankline",
|
"blankline",
|
||||||
|
@ -110,10 +108,6 @@ M.base46 = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
local chadrc_exists, chadrc = pcall(require, "custom.chadrc")
|
M = vim.tbl_deep_extend("force", M, require('chadrc'))
|
||||||
|
|
||||||
if chadrc_exists then
|
|
||||||
M = vim.tbl_deep_extend("force", M, chadrc)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
return M
|
Loading…
Reference in New Issue