feat(nvim): switch to pylsp
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-11-26 23:36:33 -05:00
parent cc80e9f265
commit a7a20653a0

View file

@ -13,15 +13,31 @@ in
neovim = {
withPython3 = true;
extraPackages = [
pkgs.basedpyright
];
extraPython3Packages = py:
with py; ([
python-lsp-server
]
++ python-lsp-server.optional-dependencies.all);
extraPackages = with pkgs.python3Packages; ([
python-lsp-server
]
++ python-lsp-server.optional-dependencies.all);
extraLuaConfig =
# lua
''
require('lspconfig').basedpyright.setup({
require('lspconfig').pylsp.setup({
capabilities = require('cmp_nvim_lsp').default_capabilities(),
settings = {
pylsp = {
plugins = {
pycodestyle = {
maxLineLength = 100,
},
},
},
},
});
'';
};