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 = {
|
||||
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,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue