2024-06-01 07:27:41 +00:00
|
|
|
{pkgs, ...}: {
|
2024-06-01 06:32:58 +00:00
|
|
|
plugins.lsp = {
|
|
|
|
enable = true;
|
|
|
|
servers = {
|
|
|
|
# python
|
|
|
|
ruff.enable = true;
|
|
|
|
|
|
|
|
# lua (nvim config)
|
|
|
|
lua-ls.enable = true;
|
|
|
|
|
|
|
|
# rust
|
|
|
|
rust-analyzer = {
|
|
|
|
enable = true;
|
|
|
|
installCargo = true;
|
|
|
|
installRustc = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# ocaml
|
|
|
|
ocamllsp.enable = true;
|
|
|
|
|
|
|
|
# nix
|
2024-06-01 07:27:41 +00:00
|
|
|
nixd = {
|
|
|
|
enable = true;
|
|
|
|
settings.formatting.command = ["${pkgs.alejandra}/bin/alejandra"];
|
|
|
|
};
|
2024-06-01 06:32:58 +00:00
|
|
|
};
|
|
|
|
};
|
2024-06-01 07:27:41 +00:00
|
|
|
|
|
|
|
plugins.lsp-format.enable = true;
|
|
|
|
plugins.lsp-lines.enable = true;
|
2024-06-01 06:32:58 +00:00
|
|
|
}
|