Skip to content

Latest commit

 

History

History
65 lines (41 loc) · 1.29 KB

README.md

File metadata and controls

65 lines (41 loc) · 1.29 KB

NvChad.custom

Custom configuration of NvChad. Simple showcase as below, using Neovide as front end.

Overview

chadrc.lua holds all the custom configurations. Add mappings, plugins in it and will call the required files.

Basic

Add basic options of neovim in custom/init.lua.

Plugins

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,
  },

Mappings

Configure mappings in custom/mappings.lua using style like this

["jk"] = { "<ESC>", "Exit Insert Mode"},

The description is used when which-key is called.

LSP

Using MasonInstall to install lsp-server and call in custom/plugins/lspconfig.lua

local servers = { "pyright", "sumneko_lua" }

Formatter and Linter

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,
}

References