add treesitter and update stuff with nvim config
This commit is contained in:
9
main.sh
9
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
|
||||
|
||||
Reference in New Issue
Block a user