From 2a3e0e2e2baa2551aa35d803fd8b5d9d264ebb82 Mon Sep 17 00:00:00 2001 From: Evan Scherrer Date: Sat, 25 Jul 2026 21:08:37 -0500 Subject: [PATCH] add treesitter and update stuff with nvim config --- main.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main.sh b/main.sh index 0f62e6e..fd44b6e 100644 --- a/main.sh +++ b/main.sh @@ -20,7 +20,7 @@ echo "* install drivers & such" | tee -a todo.md # Install some apt packages sudo apt-get upgrade -y -sudo apt-get install -y curl git jq build-essential unzip tree # for development +sudo apt-get install -y curl git jq build-essential unzip tree npm # for development sudo apt-get install -y ripgrep # I honestly don't remember why I installed these # Install Python & uv (package/version manager) @@ -30,7 +30,6 @@ source $HOME/.local/bin/env uv python install --default # Node.js 24 (with nvm - https://github.com/nvm-sh/nvm) -# also required for pyright language server (neovim) curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.5/install.sh | bash \. "$HOME/.nvm/nvm.sh" # in lieu of restarting the shell nvm install 24 @@ -62,9 +61,15 @@ sudo tar -C /opt -xzf nvim-linux-x86_64.tar.gz rm nvim-linux-x86_64.tar.gz echo 'export PATH="$PATH:/opt/nvim-linux-x86_64/bin"' | tee -a "$HOME/.bashrc" +# Neovim config git clone https://gitea.jovan04.com/evan/neovim-config "$HOME/.config/nvim" echo "* install pyright language server (and any other relevant ones)" | tee -a todo.md +# tree-sitter-cli (neovim syntax highlighting) +curl -LO https://github.com/tree-sitter/tree-sitter/releases/latest/download/tree-sitter-cli-linux-x64.zip +sudo unzip ./tree-sitter-cli-linux-x64.zip -d /opt/nvim-linux-x86_64/bin/ +rm ./tree-sitter-cli-linux-x64.zip + # install VS Code wget "https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64" -O "vs-code-linux-x64.deb" echo "code code/add-microsoft-repo boolean true" | sudo debconf-set-selections