Tiny Rocket Blog

PDE Setup

PDE Setup

08 July 2022

How to get up and running on a new machine.

There’s been a few times I have had to work on a VM or SSH into a server to do some work. I wanted to lower some of the friction associated with getting ready and comfortable in a new, foreign environment. This guide might also be useful for those who wanted to clone my setup but found the installation process a little tedious.

Overview:

  1. Build Neovim from source or a release package.

  2. Install dependencies for the setup. These are needed for the Neovim plugins to run smoothly

    sudo apt-get install ripgrep fd-find tmux curl python3 python3-pip
  3. Install pnpm and set up the Node env via pnpm env use --global lts

    curl -fsSL https://get.pnpm.io/install.sh | sh -
  4. Clone nvim dotfiles + whatever else you might want.

    git clone https://www.github.com/aalhendi/dotfiles && mkdir --parents ~/.config/nvim/ && mv dotfiles/.config/nvim/* ~/.config/nvim/
  5. Install global packages

    pnpm add -g typescript graphql neovim
    pip3 install 'pynvim'
  6. Install Rust

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  7. Install rust-analyzer

    rustup component add rust-src
  8. Install anything else… Ex. Debian-11 still doesn’t have clangd-12 clangd, Marksman.

    sudo apt-get install clangd-12
  9. Run :PackerSync from within Neovim