Better python
This commit is contained in:
+9
-3
@@ -334,8 +334,14 @@ run() {
|
|||||||
# Install some python plugins that work well with neovim if necessary
|
# Install some python plugins that work well with neovim if necessary
|
||||||
if [ $should_configure_neovim -eq 1 ]; then
|
if [ $should_configure_neovim -eq 1 ]; then
|
||||||
python_packages+=(neovim)
|
python_packages+=(neovim)
|
||||||
python_packages+=(pycodestyle)
|
|
||||||
python_packages+=("python-lsp-server[all]")
|
if [ $has_pacman -eq 1 ]; then
|
||||||
|
packages+=(ruff)
|
||||||
|
packages+=(pyright)
|
||||||
|
else
|
||||||
|
python_packages+=(ruff)
|
||||||
|
python_packages+=(pyright)
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -370,7 +376,7 @@ run() {
|
|||||||
curl -L https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.tar.gz -o tmp.tar.gz
|
curl -L https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.tar.gz -o tmp.tar.gz
|
||||||
sudo mkdir -p /opt/nvim
|
sudo mkdir -p /opt/nvim
|
||||||
sudo tar xf tmp.tar.gz -C /opt/nvim --strip-components=1
|
sudo tar xf tmp.tar.gz -C /opt/nvim --strip-components=1
|
||||||
sudo ln -s /opt/nvim/bin/nvim /usr/bin/nvim
|
sudo ln -s /opt/nvim/bin/nvim /usr/local/bin/nvim
|
||||||
rm tmp.tar.gz
|
rm tmp.tar.gz
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user