Compare commits

..

No commits in common. "0eeb3f2b6c2364308203c42fb26678dcb78fee86" and "13b3916c1cac0adf865eaa2624604de1b89f0902" have entirely different histories.

4 changed files with 9 additions and 37 deletions

View file

@ -621,9 +621,3 @@
[JudahZF](https://github.com/JudahZF): [JudahZF](https://github.com/JudahZF):
- Added gitFiles mapping option to telescope - Added gitFiles mapping option to telescope
[Ring-A-Ding-Ding-Baby](https://github.com/Ring-A-Ding-Ding-Baby)
- Aligned `codelldb` adapter setup with [rustaceanvim]s built-in logic.
- Added `languages.rust.dap.backend` option to choose between `codelldb` and
`lldb-dap` adapters.

View file

@ -1,5 +1,5 @@
{ {
inputs, self,
config, config,
pkgs, pkgs,
lib, lib,
@ -43,7 +43,7 @@
defaultFormat = ["prettier"]; defaultFormat = ["prettier"];
formats = let formats = let
parser = "${inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.prettier-plugin-astro}/index.js"; parser = "${self.packages.${pkgs.stdenv.hostPlatform.system}.prettier-plugin-astro}/index.js";
in { in {
prettier = { prettier = {
command = getExe pkgs.prettier; command = getExe pkgs.prettier;

View file

@ -87,19 +87,6 @@ in {
type = package; type = package;
default = pkgs.lldb; default = pkgs.lldb;
}; };
adapter = mkOption {
type = enum ["lldb-dap" "codelldb"];
default = "codelldb";
description = ''
Select which LLDB-based debug adapter to use:
- "codelldb": use the CodeLLDB adapter from the vadimcn.vscode-lldb extension.
- "lldb-dap": use the LLDB DAP implementation shipped with LLVM (lldb-dap).
The default "codelldb" backend generally provides a better debugging experience for Rust.
'';
};
}; };
extensions = { extensions = {
@ -204,20 +191,11 @@ in {
${optionalString cfg.dap.enable '' ${optionalString cfg.dap.enable ''
dap = { dap = {
adapter = ${ adapter = {
if cfg.dap.adapter == "lldb-dap" type = "executable",
then '' command = "${cfg.dap.package}/bin/lldb-dap",
{ name = "rustacean_lldb",
type = "executable", },
command = "${cfg.dap.package}/bin/lldb-dap",
name = "rustacean_lldb",
}''
else let
codelldb = pkgs.vscode-extensions.vadimcn.vscode-lldb.adapter;
codelldbPath = "${codelldb}/bin/codelldb";
liblldbPath = "${codelldb}/share/lldb/lib/liblldb.so";
in ''require("rustaceanvim.config").get_codelldb_adapter("${codelldbPath}", "${liblldbPath}")''
},
}, },
''} ''}
} }

View file

@ -1,5 +1,5 @@
{ {
inputs, self,
config, config,
pkgs, pkgs,
lib, lib,
@ -56,7 +56,7 @@
defaultFormat = ["prettier"]; defaultFormat = ["prettier"];
formats = let formats = let
prettierPlugin = inputs.self.packages.${pkgs.stdenv.system}.prettier-plugin-svelte; prettierPlugin = self.packages.${pkgs.stdenv.system}.prettier-plugin-svelte;
prettierPluginPath = "${prettierPlugin}/lib/node_modules/prettier-plugin-svelte/plugin.js"; prettierPluginPath = "${prettierPlugin}/lib/node_modules/prettier-plugin-svelte/plugin.js";
in { in {
prettier = { prettier = {