Updated rust configurations

This commit is contained in:
Fred Drake
2025-02-05 14:24:49 -05:00
parent 0f05b2f131
commit dd7edf6671
3 changed files with 50 additions and 3 deletions
+30 -3
View File
@@ -1,15 +1,42 @@
{pkgs, ...}: {
plugins = {
bacon.enable = true;
conform-nvim = {
enable = true;
settings = {formatters_by_ft.rust = ["rustfmt"];};
};
# dap-lldb.enable = true;
rustaceanvim = {
enable = true;
settings = {
dap.adapter = {
command = "${pkgs.lldb_19}/bin/lldb-dap";
type = "executable";
# dap.adapters.rt_lldb = {
# name = "rt_lldb";
# command = "/Applications/Xcode.app/Contents/Developer/usr/bin/lldb-dap";
# type = "executable";
# };
# dap.adapters.lldb = {
# name = "Deeeeebug";
# type = "lldb-dap";
# request = "launch";
# # port = "${''$''}{port}/bin/rust-lldb-vscode-adapter";
# # command = "/opt/homebrew/opt/llvm/bin/lldb-dap";
# # program = "./target/debug/deckgame";
# };
# dap.adapters.rt_lldb = {
# name = "lldb";
# type = "executable";
# #command = "${pkgs.lldb}/bin/lldb-dap";
# command = "${pkgs.vscode-extensions.vadimcn.vscode-lldb}/share/vscode/extensions/vadimcn.vscode-lldb/adapter/codelldb";
# };
server = {
dap.adapters.lldb = {
type = "server";
port = "${''$''}{port}";
executable = {
command = "codelldb";
args = ["--port" "${''$''}{port}"];
};
};
};
tools.enable_clippy = true;
server = {