diff --git a/config/plugins/lsp/conform.nix b/config/plugins/lsp/conform.nix index aa542cf..1296dde 100644 --- a/config/plugins/lsp/conform.nix +++ b/config/plugins/lsp/conform.nix @@ -22,6 +22,9 @@ "isort" "black" ]; + rust = [ + "rustfmt" + ]; }; # Install our formatters @@ -45,6 +48,9 @@ "--enable-unstable-feature" "string_processing" ]; }; + rustfmt = { + command = lib.getExe pkgs.rustfmt; + }; }; # Receive notificaton when a formatter errors. diff --git a/config/plugins/lsp/lsp.nix b/config/plugins/lsp/lsp.nix index 4fdcbe6..2a4c4f7 100644 --- a/config/plugins/lsp/lsp.nix +++ b/config/plugins/lsp/lsp.nix @@ -34,6 +34,13 @@ pyright = { enable = true; }; + # Rust + rust_analyzer = { + enable = true; + # dependencies + installCargo = true; + installRustc = true; + }; }; keymaps = {