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
+19
View File
@@ -177,6 +177,11 @@
icon = "󱡅";
desc = "Harpoon";
}
{
__unkeyed-1 = "<leader>n";
icon = "";
desc = "Bacon (Rust)";
}
];
};
};
@@ -531,5 +536,19 @@
action = "<CMD>Telescope dap frames<CR>";
options.desc = "Search Frames";
}
# Bacon (Rust)
{
mode = "n";
key = "<leader>nl";
action = "<CMD>BaconList<CR>";
options.desc = "List Bacon Issues";
}
{
mode = "n";
key = "<leader>nn";
action = "<CMD>BaconLoad<CR>:w<CR>:BaconNext<CR>";
options.desc = "Next Bacon Issue";
}
];
}
+1
View File
@@ -3,6 +3,7 @@ let
in
{pkgs, ...}: {
plugins = {
avante.enable = true;
cmp = {
enable = true;
settings = {
+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 = {