Skip to content

Commit 9edd780

Browse files
committed
remove autodoc generator
1 parent c56a903 commit 9edd780

File tree

4 files changed

+11
-204
lines changed

4 files changed

+11
-204
lines changed

.github/workflows/docs.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DAP-Rust: Debug Adapter Protocol for Rust in Neovim
22

3-
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/MrEhbr/dap-rust/lint-test.yml?branch=main&style=for-the-badge)
3+
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/MrEhbr/dap-rust.nvim/lint-test.yml?branch=main&style=for-the-badge)
44
![Lua](https://img.shields.io/badge/Made%20with%20Lua-blueviolet.svg?style=for-the-badge&logo=lua)
55

66
A Neovim plugin that provides Debug Adapter Protocol (DAP) integration for Rust projects.
@@ -23,16 +23,15 @@ A Neovim plugin that provides Debug Adapter Protocol (DAP) integration for Rust
2323

2424
```lua
2525
{
26-
"MrEhbr/dap-rust",
26+
"MrEhbr/dap-rust.nvim",
2727
dependencies = { "mfussenegger/nvim-dap" },
2828
config = function()
2929
require("dap-rust").setup({
3030
-- Required configuration
3131
codelldb = {
3232
path = "path/to/codelldb", -- REQUIRED: Path to the CodeLLDB executable
3333
lib_path = "path/to/liblldb.so", -- REQUIRED: Path to liblldb
34-
port = "${port}", -- Port for communication, keep as "${port}" to use random port
35-
initialize_timeout_sec = 20,
34+
port = "${port}" -- Port for communication, keep as "${port}" to use random port
3635
},
3736
})
3837
end,
@@ -43,7 +42,7 @@ A Neovim plugin that provides Debug Adapter Protocol (DAP) integration for Rust
4342

4443
```lua
4544
use {
46-
"MrEhbr/dap-rust",
45+
"MrEhbr/dap-rust.nvim",
4746
requires = { "mfussenegger/nvim-dap" },
4847
config = function()
4948
require("dap-rust").setup({
@@ -62,7 +61,6 @@ local default_config = {
6261
codelldb = {
6362
path = "", -- REQUIRED: Path to the CodeLLDB executable
6463
lib_path = "", -- REQUIRED: Path to the liblldb shared library
65-
initialize_timeout_sec = 20,
6664
port = "${port}",
6765
args = {},
6866
},
@@ -80,18 +78,21 @@ local default_config = {
8078
These paths vary depending on your system and installation method. For example:
8179

8280
#### macOS (with Homebrew)
81+
8382
```lua
8483
path = "/opt/homebrew/opt/llvm/bin/lldb-vscode",
8584
lib_path = "/opt/homebrew/opt/llvm/lib/liblldb.dylib",
8685
```
8786

8887
#### Linux
88+
8989
```lua
9090
path = "/usr/bin/lldb-vscode",
9191
lib_path = "/usr/lib/liblldb.so",
9292
```
9393

9494
#### Windows
95+
9596
```lua
9697
path = "C:\\Program Files\\LLVM\\bin\\lldb-vscode.exe",
9798
lib_path = "C:\\Program Files\\LLVM\\bin\\liblldb.dll",

doc/dap-rust.txt

Lines changed: 0 additions & 170 deletions
This file was deleted.

lua/dap-rust/module.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,13 @@ local function setup_codelldb_adapter(dap, config)
7474
end
7575
end
7676

77-
local function pick_process(targets)
77+
local function pick_one(targets)
7878
local co, ismain = coroutine.running()
7979
local ui = require("dap.ui")
8080
local pick = (co and not ismain) and ui.pick_one or ui.pick_one_sync
8181
local result = pick(targets, "Select target: ", function(v)
82-
return v
82+
local target = vim.fn.fnamemodify(v, ":t")
83+
return target
8384
end)
8485
return result or require("dap").ABORT
8586
end
@@ -98,7 +99,7 @@ local function get_program()
9899
end
99100
end
100101

101-
return pick_process(results)
102+
return pick_one(results)
102103
end
103104

104105
local function setup_rust_configuration(dap, configs)

0 commit comments

Comments
 (0)