feat(nvim): switch to pylsp
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
cc80e9f265
commit
a7a20653a0
1 changed files with 20 additions and 4 deletions
|
@ -13,15 +13,31 @@ in
|
||||||
neovim = {
|
neovim = {
|
||||||
withPython3 = true;
|
withPython3 = true;
|
||||||
|
|
||||||
extraPackages = [
|
extraPython3Packages = py:
|
||||||
pkgs.basedpyright
|
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 =
|
extraLuaConfig =
|
||||||
# lua
|
# lua
|
||||||
''
|
''
|
||||||
require('lspconfig').basedpyright.setup({
|
require('lspconfig').pylsp.setup({
|
||||||
capabilities = require('cmp_nvim_lsp').default_capabilities(),
|
capabilities = require('cmp_nvim_lsp').default_capabilities(),
|
||||||
|
settings = {
|
||||||
|
pylsp = {
|
||||||
|
plugins = {
|
||||||
|
pycodestyle = {
|
||||||
|
maxLineLength = 100,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue