A starter template for LazyVim. Refer to the documentation to get started.
Clone the config
git clone [email protected]:PrakarnJ/lazyvim_config.git ~/.config/nvim
Set up Clang format
cd ~/.config/nvim
~/.local/share/nvim/mason/bin/clang-format -style=file:.clang-format --dump-config > ~/.clang-format
Tmux config (update with ctrl+a, shift+i)
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
Tmux source (copy .tmux.conf into /home/NAME/)
tmux source ~/.tmux.conf
Generate compile_command.json
cd YOUR_CPP_PROJ
mkdir -p cmake/build
cd cmake/build
cmake ../.. -DMAKE_EXPORT_COMPILE_COMMANDS=ON
You should see it in the cmake/build directory. You can copy or symlink it to your project root if needed.
Python in MacOS issues Due to the removal of the long-deprecated pkgutil.ImpImporter class, the pip command may not work for Python 3.12. You just have to manually install pip for Python 3.12
python -m ensurepip --upgrade
python -m pip install --upgrade setuptools
python -m pip install <module>
In your virtual environment
pip install --upgrade setuptools
Python comes with an ensurepip, which can install pip in a Python environment.
Terminal config oh-my-zsh
sudo apt install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):
plugins=(
# other plugins...
zsh-autosuggestions
)
Install P10k powerlevel10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc