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
66A 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
4544use {
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 = {
8078These paths vary depending on your system and installation method. For example:
8179
8280#### macOS (with Homebrew)
81+
8382``` lua
8483path = " /opt/homebrew/opt/llvm/bin/lldb-vscode" ,
8584lib_path = " /opt/homebrew/opt/llvm/lib/liblldb.dylib" ,
8685```
8786
8887#### Linux
88+
8989``` lua
9090path = " /usr/bin/lldb-vscode" ,
9191lib_path = " /usr/lib/liblldb.so" ,
9292```
9393
9494#### Windows
95+
9596``` lua
9697path = " C:\\ Program Files\\ LLVM\\ bin\\ lldb-vscode.exe" ,
9798lib_path = " C:\\ Program Files\\ LLVM\\ bin\\ liblldb.dll" ,
0 commit comments