migrate from pyright back to pylsp
This commit is contained in:
parent
11722b6118
commit
617193ac5c
@ -7,14 +7,19 @@ My dotfiles.
|
|||||||
Symlink all the files in src/ to your home directory using the provided dotinstall.sh script, or manually.
|
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.
|
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.
|
This list encompasses all packages needed for a full system, including utilities and games.
|
||||||
Feel free to pick and choose which packages you want.
|
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,
|
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.
|
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
|
### 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.
|
`.local/bin/keyboard.sh` provides changes I like, such as swapping escape and caps lock, which you should remove if you don't need.
|
||||||
|
@ -102,7 +102,7 @@ printf "Symlinked dotfiles.\n" >&2
|
|||||||
if [ "$INSTALL_PYTHON" = "Y" ]; then
|
if [ "$INSTALL_PYTHON" = "Y" ]; then
|
||||||
if command -v pipx > /dev/null; then
|
if command -v pipx > /dev/null; then
|
||||||
printf "Installing Python packages via pipx...\n" >&2
|
printf "Installing Python packages via pipx...\n" >&2
|
||||||
cat "$PYREQS" | sed "/#.*/d" | xargs -I{} pipx install {}
|
"$PYREQS"
|
||||||
else
|
else
|
||||||
printf "'pipx' is missing. Not installing Python packages...\n" >&2
|
printf "'pipx' is missing. Not installing Python packages...\n" >&2
|
||||||
fi
|
fi
|
||||||
|
2
programs
2
programs
@ -125,8 +125,6 @@ blender
|
|||||||
audacity
|
audacity
|
||||||
syncthing
|
syncthing
|
||||||
inkscape
|
inkscape
|
||||||
pyright
|
|
||||||
python-black
|
|
||||||
typescript
|
typescript
|
||||||
typescript-language-server
|
typescript-language-server
|
||||||
bash-language-server
|
bash-language-server
|
||||||
|
16
programs-python
Normal file → Executable file
16
programs-python
Normal file → Executable file
@ -1,4 +1,12 @@
|
|||||||
animdl
|
#!/bin/sh
|
||||||
td-watson
|
# install python packages via pipx
|
||||||
cppman
|
|
||||||
git+https://github.com/dogeystamp/testr
|
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
|
||||||
|
@ -49,7 +49,16 @@ end
|
|||||||
|
|
||||||
-- settings per server (overrides defaults)
|
-- settings per server (overrides defaults)
|
||||||
local servers = {
|
local servers = {
|
||||||
pyright = {},
|
--pyright = {},
|
||||||
|
pylsp = {
|
||||||
|
settings = {
|
||||||
|
plugins = {
|
||||||
|
['python-lsp-black'] = {},
|
||||||
|
['python-pyflakes'] = {},
|
||||||
|
['pylsp-mypy'] = {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
clangd = {},
|
clangd = {},
|
||||||
tsserver = {},
|
tsserver = {},
|
||||||
bashls = {},
|
bashls = {},
|
||||||
|
Loading…
Reference in New Issue
Block a user