nix-config/modules/home-manager/nvim/lsp/rust-tools.nix

21 lines
311 B
Nix

{
config,
pkgs,
lib,
...
}: {
config =
lib.mkIf config.home.nvim.enable-lsp
{
programs.nixvim = {
plugins.rust-tools = {
enable = true;
server = {
checkOnSave = true;
check.command = "clippy";
};
};
};
};
}