nix-config/modules/home-manager/nvim/lsp/rust-tools.nix
Gabe Venberg 6f0e167087 added enable option to nvim
changed home-manager personal config namespace from home.* to user.*
2024-05-29 13:40:03 -05:00

21 lines
340 B
Nix

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