migrate from pyright back to pylsp

This commit is contained in:
dogeystamp 2024-03-03 11:39:44 -05:00
parent 11722b6118
commit 617193ac5c
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
5 changed files with 30 additions and 10 deletions

View File

@ -7,14 +7,19 @@ My dotfiles.
Symlink all the files in src/ to your home directory using the provided dotinstall.sh script, or manually.
Otherwise, copy them manually to your home directory.
After, install some packages. A list is provided in the programs file.
After, install some packages. A list is provided in the `programs` file.
This list encompasses all packages needed for a full system, including utilities and games.
Feel free to pick and choose which packages you want.
A script is also provided with `programs-python` to install Python packages via pipx.
Package availability and their names **differ based on the distribution**: these are for Arch Linux and its derivatives.
For a full desktop experience,
you should also build the programs in `suckless/` by runningn `./compile-suckless.sh` as root.
you should also build the programs in `suckless/` by running `./compile-suckless.sh` as root.
Alternatively, build the programs with the README instructions in the directory.
Some features are enabled or disabled based on a "system profile":
once the dotfiles are installed, see `~/.config/dot_profile.example` for more information.
### Notes
`.local/bin/keyboard.sh` provides changes I like, such as swapping escape and caps lock, which you should remove if you don't need.

View File

@ -102,7 +102,7 @@ printf "Symlinked dotfiles.\n" >&2
if [ "$INSTALL_PYTHON" = "Y" ]; then
if command -v pipx > /dev/null; then
printf "Installing Python packages via pipx...\n" >&2
cat "$PYREQS" | sed "/#.*/d" | xargs -I{} pipx install {}
"$PYREQS"
else
printf "'pipx' is missing. Not installing Python packages...\n" >&2
fi

View File

@ -125,8 +125,6 @@ blender
audacity
syncthing
inkscape
pyright
python-black
typescript
typescript-language-server
bash-language-server

16
programs-python Normal file → Executable file
View File

@ -1,4 +1,12 @@
animdl
td-watson
cppman
git+https://github.com/dogeystamp/testr
#!/bin/sh
# install python packages via pipx
pipx install \
animdl \
cppman \
git+https://github.com/dogeystamp/testr
pipx install python-lsp-server
pipx inject python-lsp-server \
python-lsp-black \
pylsp-mypy

View File

@ -49,7 +49,16 @@ end
-- settings per server (overrides defaults)
local servers = {
pyright = {},
--pyright = {},
pylsp = {
settings = {
plugins = {
['python-lsp-black'] = {},
['python-pyflakes'] = {},
['pylsp-mypy'] = {},
},
},
},
clangd = {},
tsserver = {},
bashls = {},