Alejandro Angulo
d149b9b70b
Formatted all files in repo and set up alejandra to run automatically when nix files are saved.
32 lines
558 B
Nix
32 lines
558 B
Nix
{pkgs, ...}: {
|
|
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
|
|
nixd = {
|
|
enable = true;
|
|
settings.formatting.command = ["${pkgs.alejandra}/bin/alejandra"];
|
|
};
|
|
};
|
|
};
|
|
|
|
plugins.lsp-format.enable = true;
|
|
plugins.lsp-lines.enable = true;
|
|
}
|