mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-07 11:17:15 +00:00
Compare commits
5 commits
13b3916c1c
...
0eeb3f2b6c
| Author | SHA1 | Date | |
|---|---|---|---|
|
0eeb3f2b6c |
|||
|
18749d6be7 |
|||
|
|
2fe8be4b6c |
||
|
|
056328ff4a |
||
|
|
1d362cd88e |
4 changed files with 37 additions and 9 deletions
|
|
@ -621,3 +621,9 @@
|
|||
[JudahZF](https://github.com/JudahZF):
|
||||
|
||||
- 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.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
self,
|
||||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
|
|
@ -43,7 +43,7 @@
|
|||
|
||||
defaultFormat = ["prettier"];
|
||||
formats = let
|
||||
parser = "${self.packages.${pkgs.stdenv.hostPlatform.system}.prettier-plugin-astro}/index.js";
|
||||
parser = "${inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.prettier-plugin-astro}/index.js";
|
||||
in {
|
||||
prettier = {
|
||||
command = getExe pkgs.prettier;
|
||||
|
|
|
|||
|
|
@ -87,6 +87,19 @@ in {
|
|||
type = package;
|
||||
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 = {
|
||||
|
|
@ -191,11 +204,20 @@ in {
|
|||
|
||||
${optionalString cfg.dap.enable ''
|
||||
dap = {
|
||||
adapter = {
|
||||
type = "executable",
|
||||
command = "${cfg.dap.package}/bin/lldb-dap",
|
||||
name = "rustacean_lldb",
|
||||
},
|
||||
adapter = ${
|
||||
if cfg.dap.adapter == "lldb-dap"
|
||||
then ''
|
||||
{
|
||||
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}")''
|
||||
},
|
||||
},
|
||||
''}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
self,
|
||||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
|
|
@ -56,7 +56,7 @@
|
|||
|
||||
defaultFormat = ["prettier"];
|
||||
formats = let
|
||||
prettierPlugin = self.packages.${pkgs.stdenv.system}.prettier-plugin-svelte;
|
||||
prettierPlugin = inputs.self.packages.${pkgs.stdenv.system}.prettier-plugin-svelte;
|
||||
prettierPluginPath = "${prettierPlugin}/lib/node_modules/prettier-plugin-svelte/plugin.js";
|
||||
in {
|
||||
prettier = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue