This ui plugin is a collection of many UI modules like statusline, tabline, cheatsheet, nvdash and much more!
- Docs at
:h nvui
- Create
lua/chadrc.lua
file that returns a table, can be empty table too. - Table structure must be same as nvconfig.lua
In your plugins file
"nvim-lua/plenary.nvim",
{
"nvchad/ui",
config = function()
require "nvchad"
end
},
{
"nvchad/base46",
lazy = true,
build = function()
require("base46").load_all_highlights()
end,
},
"nvchad/volt", -- optional, needed for theme switcher
-- or just use Telescope themes
Base46 setup
-- put this in your main init.lua file ( before lazy setup )
vim.g.base46_cache = vim.fn.stdpath "data" .. "/base46_cache/"
-- put this after lazy setup
-- (method 1, For heavy lazyloaders)
dofile(vim.g.base46_cache .. "defaults")
dofile(vim.g.base46_cache .. "statusline")
-- (method 2, for non lazyloaders) to load all highlights at once
for _, v in ipairs(vim.fn.readdir(vim.g.base46_cache)) do
dofile(vim.g.base46_cache .. v)
end
- Mix of tabline & bufferline.
- Each tab will have its own set of buffers stored, and the tabufline will show those only.
- Think of it like workspaces on Linux/Windows where windows stay in their own workspaces, but in vim buffers from all tabs will be shown in every tab!
NvChad.-.Maintain.buffers.per.tab.tabufline.Neovim.V_9iJ96U_k8.webm
- Statusline with 4 different styles
- Create, toggle terminals with cmd, window options ( can also be used to color each term window differently! )
- Manage code runner
- ( :Telescope terms ) to unhide terminal buffers leader + pt .
- Minimal signature window ( 50 LOC ~), just uses
vim.lsp.buf.signature_help
on some autocmds.
- Used for renaming
- Minimal colorizer module that colors hex colors and all LSP related variables etc ( useful for tailwind, css etc and every lsp that supports it )
- Just supports virtual text, fg, bg
- 150 ~ LOC Dashboard module, minimal & nothing fancy!
- A lot of cmp theming with base46!
- Do know that nvchad's base46 has like 68 themes, so dont judge the screenshots by colors!
- Support for Tailwind & Css LSP colors
- With 3 different styles : bordered, compact, flat
- Auto-generated mappings cheatsheet module, which has a similar layout to that of CSS's masonry layout.
- It has 2 themes ( grid & simple )
- MasonInstallAll command will now capture all the mason tools from your config
- Supported plugins are : lspconfig, nvim-lint, conform.nvim
- So for example if you have lspconfig like this :
require("lspconfig").html.setup{}
require("lspconfig").clangd.setup{}
Then running MasonInstallAll will install both the mason pkgs
check :h nvui.mason
for more info
- Huge thanks to @lucario387 for creating
nvchad_types
.
If you like NvChad or its plugins and would like to support it via donation