This is my repo for the custom
folder in NvChad config
Prerequisites:
- nvim >= 9.0
- Node.js >= 16,
npm
andyarn
CLI - go CLI
- python CLI
For Linux & macOS:
# Install NvChad core 2.0
git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1
# init nvchad core
nvim
# 1. Choose N (No) when asking for example config
# 2. Wait until the bootstrap script is done and ask to quit nvim.
# Install this custom config for Front End, Go lang and Python
rm -rf ~/.config/nvim/lua/custom
git clone https://github.com/trongthanh/nvchad ~/.config/nvim/lua/custom --depth 1
# start nvim again to begin custom setup
nvim
# 1. Wait until lazy install new plugins finished
# 2. Install new servers from this custom config
:MasonInstallAll
# 3. Restart nvim once Mason install is done
- HTML
- CSS / SCSS
- JavaScript (eslint & stylelint)
- TypeScript (eslint & stylelint)
- React JSX / TSX
- Vue.js
- Tailwind CSS
- Go lang
- Python
- JSON
- YAML
- Lua (nvim's config syntax)
Other languages has syntax highlighting only, such as Markdown, Dockerfile, Bash...
Extras from NvChad 2:
- dyng/ctrlsf.vim: Ctrl-Shift-F, fuzzy search all files in project
- ggandor/leap.nvim: Easymotion, jump to any position with
s
andS
) - github/copilot.vim: You know what
- godlygeek/tabular: Alignment, tabular columns (
:Tab /:/l0r1
) - iamcco/markdown-preview.nvim: Preview Mardown in browser (
Space p m
) - jackMort/ChatGPT.nvim: Experiment, turn off by default
- lervag/wiki.vim: Experiment, manage personal wiki / journal repo (wiki path ~/Documents/wiki)
- mattn/emmet-vim: HTML generator with CSS selector shorthand
- matze/vim-move: Move code block
- mg979/vim-visual-multi: Vim multi-cursor (
Ctrl-n
) - mracos/mermaid.vim: Mermaid syntax support
- nvim-scrollbar: Scrollbar with git & LSP signs
- tpope/vim-surround: Brackets and tags generators (vmode:
S)
, nmode:ysiw)
,cs"'
) - windwp/nvim-ts-autotag: Auto tags & brackets closing using treesitter
I've changed a bunch of NvChad default mappings for better actions grouping, for e.g: Spc l
for LSP, Spc f
for Telescope commands, Spc w
for wiki...
In addition, I've added some frequently used text objects and shortcuts:
- text lines (
il
,al
) - inner quotes (just
c"
instead ofci"
) - inner brackets (just
c)
in stead ofci)
) - insert current ISO date time (
Ctrl-Alt-t
)
See mappings.lua OR open cheatsheet (in nvim, Space c h
) for details.
© 2023-current Tran Trong Thanh. MIT License