add ruff as lsp

This commit is contained in:
QuiNzX 2025-01-17 20:25:45 +01:00
commit 0bbb039b7f
2 changed files with 20 additions and 1 deletions

View file

@ -46,6 +46,21 @@
'';
};
ruff = {
package = pkgs.ruff;
lspConfig = ''
lspconfig.ruff.setup{
capabilities = capabilities;
on_attach = default_on_attach;
cmd = ${
if isList cfg.lsp.package
then expToLua cfg.lsp.package
else ''{"${cfg.lsp.package}/bin/ruff", "server"}''
}
}
'';
};
python-lsp-server = {
package = pkgs.python-lsp-server;
lspConfig = ''