_(`-') (`-') _ (`-') _ (`-').->
( (OO ).-> .-> ( OO).-> <-. (_) <-. ( OO).-/ ( OO)_
\ .'_ (`-')----. / '._ (`-')-----. ,-(`-') ,--. ) (,------. (_)--\_)
'`'-..__) ( OO).-. '|'--...__) (OO|(_\---' | ( OO) | (`-') | .---' / _ /
| | ' | ( _) | | |`--. .--' / | '--. | | ) | |OO ) (| '--. \_..`--.
| | / : \| |)| | | | \_) .--' (| |_/ (| '__ | | .--' .-._) \
| '-' / ' '-' ' | | `| |_) | |'-> | |' | `---. \ /
`------' `-----' `--' `--' `--' `-----' `------' `-----'
Note: Due to not wanting to convert my vimrc into lua file, nvim config file (~/.config/nvim/init.lua) actually calls vimrc.
-
1. Install nvim (greater than
0.9, recommended0.11.3):if [[ "$(uname)" == "Darwin" ]]; then brew install wget NVIM_TAR="nvim-macos-arm64" else sudo apt install wget NVIM_TAR="nvim-linux-x86_64" fi mkdir -p $HOME/dev/nvim cd $HOME/dev/nvim wget https://github.com/neovim/neovim/releases/download/v0.11.3/$NVIM_TAR.tar.gz tar xvf $NVIM_TAR.tar.gz mv $NVIM_TAR nvim
-
2. Install vim-plug:
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim -
3. Install deps:
mkdir -p $HOME/.cache/nvim/ touch $HOME/.cache/nvim/lsp-installer.log touch $HOME/.npm-global if [[ "$(uname)" == "Darwin" ]]; then brew update && brew upgrade brew install python node npm ripgrep pkg-config openssl cmake llvm ninja shellcheck jq git-lfs \ shfmt fd else sudo apt update && sudo apt upgrade -y sudo apt install python3 python3-pip python3-venv nodejs npm ripgrep pkg-config libssl-dev cmake \ libclang-dev ninja-build shellcheck jq black shfmt git-lfs -y fi python3 -m venv ~/.venvs/pynvim source ~/.venvs/pynvim/bin/activate pip install pynvim if [[ "$(uname)" == "Darwin" ]]; then pip install black fi git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf ~/.fzf/install npm install -g neovim typescript prettier doctoc
-
4. Copy the config files in your home directory:
cd ~/dev/dotfiles cp .vimrc .bashrc .bash_functions .bash_aliases .tmux.conf $HOME/ cp -r .config/nvim $HOME/.config/
-
5. Start
nvimand run the following commands::PlugInstall :TSUpdate all :TSInstall python vim json bash yaml html typescript tsx javascript html rust markdown lua :LspInstall yamlls tsserver pyright html vimls jsonls rust_analyzer sumneko_lua texlab cssls -
6. Check health by running
healthcheckcommand and following any install recommendations::checkhealth
For WSL alacritty with tmux is recommended. Copy alacritty.toml in AppData directory.
This can be determined by running alacritty -v in powershell.
E.g.
C:\Users\odown>alacritty -v
C:\Users\odown>Created log file at "C:\Users\odown\AppData\Local\Temp\Alacritty-27204.log"
[0.000008200s] [INFO ] [alacritty] Welcome to Alacritty
[0.000705600s] [INFO ] [alacritty] Version 0.15.1 (0c405d5)
[0.002281900s] [INFO ] [alacritty] Configuration files loaded from:
"C:\\Users\\odown\\AppData\\Roaming\\alacritty\\alacritty.toml"# Install via homebrew
brew install --cask alacritty
# Copy config file
mkdir -p $HOME/.config/alacritty
cd ~/dev/dotfiles
cp alacritty.toml $HOME/.config/alacritty/alacritty.tomlsudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure localesUpdate $HOME/.ssh/config with identity file config:
Host *
AddKeysToAgent yes
Compression yes
IdentityFile ~/.ssh/idcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
cargo --version
rustup component add rust-analyzer clippy
# Set to project specific
rustup override set $(cat rust-toolchain)Follow installation instructions here
Instructions here
cargo install dioxus-clisudo apt update
sudo apt install \
libwebkit2gtk-4.1-dev build-essential libxdo-dev libayatana-appindicator3-dev librsvg2-dev libglib2.0-dev \
libgtk-3-dev libgdk-pixbuf2.0-dev libcairo2-dev libpango1.0-dev libatk1.0-dev libgirepository1.0-dev pkg-config \
libjavascriptcoregtk-4.1-dev libsoup-3.0-dev pkg-configcurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc
nvm install 22
nvm use 22
node -vInstall via download here. Extract and select all .ttf or .otf files, right-click and click install for all users.
brew install --cask font-fira-code-nerd-font