Added DAP and created dedicated configuration for Rust

This commit is contained in:
Fred Drake
2024-10-01 00:07:49 -04:00
parent 3ceedb1f26
commit 32d294cd9e
8 changed files with 285 additions and 23 deletions
+28
View File
@@ -0,0 +1,28 @@
{ pkgs, ... }: {
plugins = {
conform-nvim = {
enable = true;
settings = { formatters_by_ft.rust = [ "rustfmt" ]; };
};
rustaceanvim = {
enable = true;
settings = {
dap.adapter = {
command = "${pkgs.lldb_19}/bin/lldb-dap";
type = "executable";
};
tools.enable_clippy = true;
server = {
default_settings = {
inlayHints = { lifetimeElisionHints = { enable = "always"; }; };
rust-analyzer = {
cargo = { allFeatures = true; };
check = { command = "clippy"; };
};
};
};
};
};
};
}