Custom configuration of NvChad. Simple showcase as below, using Neovide as front end.
chadrc.lua
holds all the custom configurations. Add mappings
, plugins
in it and will call the required files.
Add basic options of neovim
in custom/init.lua
.
Add plugins in custom/plugins/init.lua
, something like this below and more in references.
["folke/which-key.nvim"] = {
disable = false,
config = function ()
require("custom.plugins.which-key")
end,
},
Configure mappings in custom/mappings.lua
using style like this
["jk"] = { "<ESC>", "Exit Insert Mode"},
The description is used when which-key
is called.
Using MasonInstall
to install lsp-server and call in custom/plugins/lspconfig.lua
local servers = { "pyright", "sumneko_lua" }
Using MasonInstall
to install language formatter and linter and call in custom/plugins/null-ls.lua
local sources = {
-- Lua
-- b.formatting.stylua,
-- Python
b.formatting.yapf,
}