Install pylsp

This commit is contained in:
Thomas Avé 2024-12-15 20:37:41 +01:00
parent 4e1bced223
commit 8fa2cd9c9b
3 changed files with 20 additions and 3 deletions

View File

@ -7,12 +7,12 @@
}, },
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-cLqKFRw5I2HMWzfIolLyNVmk094KoIqt0zRdRwo7a5Y=", "narHash": "sha256-DuhR3y0gPZG0AJ2FDd+nUKzQMwT+c/DFIUWNDQ5Uyx4=",
"path": "/nix/store/85kgmnc3iny1wbziqa6a6i2alprkyg59-source/home/ags", "path": "/nix/store/rpz457196awqq0q33yiqnjg41m9sfs97-source/home/ags",
"type": "path" "type": "path"
}, },
"original": { "original": {
"path": "/nix/store/85kgmnc3iny1wbziqa6a6i2alprkyg59-source/home/ags", "path": "/nix/store/rpz457196awqq0q33yiqnjg41m9sfs97-source/home/ags",
"type": "path" "type": "path"
} }
}, },

View File

@ -11,6 +11,8 @@
luarocks luarocks
jre jre
python3 python3
python311Packages.python-lsp-server
python311Packages.flake8
python311Packages.pip python311Packages.pip
python311Packages.debugpy python311Packages.debugpy
unzip unzip

View File

@ -119,6 +119,21 @@ return {
} }
} }
require('lspconfig').pylsp.setup {
capabilities = capabilities,
settings = {
pylsp = {
plugins = {
flake8 = {enabled = true},
pycodestyle = {enabled = false},
pyflakes = {enabled = false},
pylint = {enabled = false},
mccabe = {enabled = false},
},
},
},
}
require('lspconfig').texlab.setup { require('lspconfig').texlab.setup {
capabilities = capabilities capabilities = capabilities
} }