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

21 lines
340 B
Nix
Raw Normal View History

2024-03-24 23:39:49 +01:00
{
config,
pkgs,
lib,
...
}: {
config =
lib.mkIf (config.user.nvim.enable-lsp && config.user.nvim.enable)
2024-03-24 23:39:49 +01:00
{
programs.nixvim = {
plugins.rust-tools = {
enable = true;
2024-04-30 00:31:05 +02:00
server = {
checkOnSave = true;
check.command = "clippy";
};
2024-03-24 23:39:49 +01:00
};
};
};
}