nvchad / starter Goto Github PK
View Code? Open in Web Editor NEWStarter config for NvChad
License: The Unlicense
Starter config for NvChad
License: The Unlicense
Hi, I'm puzzled that moving plugin configs from lua/configs/
to lua/plugins/
breaks the profile and give me the error like (same error for all other plugin configs, I'm just listing one of them):
Invalid spec module: `plugins.lspconfig`
Expected a `table` of specs, but a `boolean` was returned instead
File structure after moving (basically just moving plugin configs to the same folder with plugins/init.lua
:
.
├── init.lua
├── lazy-lock.json
├── LICENSE
└── lua/
├── chadrc.lua
├── configs/
├── mappings.lua
├── options.lua
└── plugins/
├── cmp.lua
├── conform.lua
├── init.lua
├── lazy.lua
└── lspconfig.lua
and I changed all the require
statements in plugins/init.lua
like this:
-- prev
require "configs.lspconfig"
-- now
require "plugins.lspconfig"
And the require
statement in init.lua
(but I didn't get any error about lazy.nvim's config, only specs of other plugins):
-- prev
local lazy_config = require "configs.lazy"
-- now
local lazy_config = require "plugins.lazy"
Appreciate for any information about how this may come from!
When performing :e $MYVIMRC and inspecting, init.lua has a warning once the LSP warms up. While just a warning as I'm very new to this it would be great to understand it and be sure I didn't somehow miss a step. Thanks in advance.
This lline
require("lazy").setup({
Hi, I'm trying out this new version of NvChad config. One immediate thing I noticed is that when I tried to uncomment the lines and enable italic comments in chadrc.lua
, it simply did not work :x
Followed the docs and I am missing how to actually use the remaining parts of this. It is appreciated, but this starter is confusing and miss directs. The docs say start and add NvChad, but never actually show how or mention how, so I am lost.
I watched a great video for this and it had you clone the main NvChad repo, but I guess those instructions are now out of date.
Thanks
https://nvchad.com/docs/quickstart/install
currently shows
git clone https://github.com/NvChad/starter ~/.config/nvim && nvim
when a few days ago it was
git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1 && nvim
In NvChad v2.5, I currently don't see any left padding for it(NvTerm)
I tried to install nvchad with this command
git clone https://github.com/NvChad/starter ~/.config/nvim
After installing it Lazy started installing plugins but it didn't ask for creating an example custom config.
I tried the installation process in the webpage but it don't work in my gentoo linux. All i get is that everytime
Error detected while processing /home/user/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /home/user/.config/nvim/init.lua:17: module 'lazy' not found:
no field package.preload['lazy']
no file './lazy.lua'
no file '/usr/share/luajit-2.1.0-beta3/lazy.lua'
no file '/usr/local/share/lua/5.1/lazy.lua'
no file '/usr/local/share/lua/5.1/lazy/init.lua'
no file '/usr/share/lua/5.1/lazy.lua'
no file '/usr/share/lua/5.1/lazy/init.lua'
no file './lazy.so'
no file '/usr/local/lib/lua/5.1/lazy.so'
no file '/usr/lib64/lua/5.1/lazy.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/home/user/.config/nvim/init.lua:17: in main chunk
I using gentoo in rolling release with latest software
If I add nvim-treesitter at ~/.config/nvim/lua/plugins/init.lua with my configs, it breaks the theme. ie everytime I have to th and select the theme.
{
"nvim-treesitter/nvim-treesitter",
config = function()
require("nvim-treesitter.configs").setup {
ensure_installed = {
"go",
},
}
end,
},
I see that nvim-treesitter is already installed by NvChad. Is it possible to add my custom configs to the existing one?
If I add "nvim-treesitter/nvim-treesitter-textobjects" it breaks the theme as well.
I do see the theme getting updated in chardrc.lua file
M.ui = {
theme = "ashes",
NvChad has created a starter repo to make it easier to install NvChad and clearer to add other plugins, but how can I disable some default plugins or just use my setup options for these plugins?
First I want to clear out: I absolutely agree that the main NvChad project is under GPL or whatever license you prefer to protect your work under the open source philosophies!
But this starter configuration is intended to be a skeleton for the user configuration to make use of NvChad. Most users will have much more self written code than provided code from this repository. Therefore I think the starter config should be under a more permissive license.
I'm especially concerned about adding my self-written lua_snippets into a GPL protected configuration, because I cannot estimate how the license inheritance will affect the resulting code when I use the snippets.
For this starter configuration I would recommend a public-domain-equivalent license, e. g.:
I think something like MIT to have attribution would also be fine.
Error detected while processing /home/nvim/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /home/nvim/.config/nvim/init.lua:17: module 'lazy' not found:
no field package.preload['lazy']
no file './lazy.lua'
no file '/__w/neovim/neovim/.deps/usr/share/luajit-2.1/lazy.lua'
no file '/usr/local/share/lua/5.1/lazy.lua'
no file '/usr/local/share/lua/5.1/lazy/init.lua'
no file '/__w/neovim/neovim/.deps/usr/share/lua/5.1/lazy.lua'
no file '/__w/neovim/neovim/.deps/usr/share/lua/5.1/lazy/init.lua'
no file './lazy.so'
no file '/usr/local/lib/lua/5.1/lazy.so'
no file '/__w/neovim/neovim/.deps/usr/lib/lua/5.1/lazy.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/home/nvim/.config/nvim/init.lua:17: in main chunk
Hi, maybe I'm doing something wrong, but fetching this repo and letting it all do the magic seems to clone the v2.0 branch of base46 instead of the newly released 2.5 under lazy/base46
.
Trying to force the branch to v2.5
results in "module 'nvconfig' not found" error, so it looks like this starter repo is still made to work with 2.0, right?
Thanks and keep up the great work :)
Hi, I'm trying to migrate my statusline settings from overriden_modules
to the modules
field as shown in the NvChad UI Configuration.
However when I tried to set the order
of statusline modules, I simply got this error and not surprisingly it didn't work:
My code:
statusline = {
-- Old
-- overriden_modules = function(modules)
-- -- Show column number in statusline
-- table.insert(modules, 9, "%#St_ln_col#" .. " Ln %l, Col %c ")
-- end,
modules = {
order = { "mode", "file", "git", "%=", "lsp_msg", "%=", "diagnostics", "lsp", "cursor_loc", "cwd", "cursor" },
cursor_loc = function()
return "%#St_ln_col#" .. " Ln %l, Col %c "
end,
},
},
The doc and nvconfig.lua
both implies that order
is indeed an array though 🤔 :
...
statusline = {
-- more opts
order = {...}, -- check stl/utils.lua file in ui repo
modules = {
-- The default cursor module is override
cursor = function()
return "%#BruhHl#" .. " bruh " -- the highlight group here is BruhHl end,
}
}
...
and nvconfig.lua
:
...
statusline = {
theme = "default", -- default/vscode/vscode_colored/minimal
-- default/round/block/arrow separators work only for default statusline theme
-- round and block will work for minimal theme only
separator_style = "default",
order = nil,
modules = nil,
},
tabufline = {
enabled = true,
lazyload = true,
order = { "treeOffset", "buffers", "tabs", "btns" },
modules = nil,
},
...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.