See nvchad.com install instructions.
git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1 && nvim
# or if you want a separate config for NvChad, e.g. NvChad
git clone https://github.com/NvChad/NvChad ~/.config/NvChad --depth 1 && NVIM_APPNAME=NvChad nvim
In the latter case I have the following script (which I call chad):
#!/bin/bash
export NVIM_APPNAME=MyNvChad
export CHAD="$HOME/.config/$NVIM_APPNAME"
if [ ! -d "$CHAD" ]; then
echo "No $CHAD"
exit 1
fi
NVIM="$(which nvim >& /dev/null)"
if [ ! -x "$NVIM" ]; then
echo "No nvim"
exit 2
fi
NVIM="$(readlink -f "$NVIM")"
"$NVIM" "$@"
Disable CR-Completion
Edit cmp.lua in $HOME/.config/MyNvChad/lua/plugins/configs where e.g. this is for nvim
with NVIM_APPNAME=MyNvChad. Change (this is line 78 in mine, where mapping is set)
["<CR>"] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace,
select = false,
},
to e.g.
["<C-Tab>"] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace,
select = false,
},
(Note that with my KDE setup, C-Tab is not bound by the window manager. This
may not be the case with other WM's such as Gnome, or OS's, such as Windows.
Basically I want my editor to be WYTIWYG: What You Type Is What You Get. If I press hello<cr>world
(in insert mode) then I expect
hello
world
to be inserted. With the default setup of cmp with Enter-completion, this is not guaranteed,
and I find this very annoying as I have to carefully watch what gets typed in and correct cmp
if it completes incorrectly.